summaryrefslogtreecommitdiff
path: root/tools/scripts/README
diff options
context:
space:
mode:
authorJonas Karlman <[email protected]>2026-07-10 13:15:53 +0000
committerPeng Fan <[email protected]>2026-07-12 16:18:32 +0800
commit0f04bbf9ab3751405308f0a8aef2b6016a072b7d (patch)
treefb9bc6d5c23f545b5ae8fb4e352cdcdf4e700b00 /tools/scripts/README
parent35c3e733fe4cbaa91f6cc02ddbb30f6feb3eb1fc (diff)
power: regulator: Fix regulator_enable/disable() macros
The commit 076265b75e61 ("compat: regulator: add enable/disable macros") added regulator_enable/disable() macros to provide a closer analogue to the Linux API. These new macros wrap regulator_set_enable() that may return detailed error codes and should typically not directly be called by drivers. Change the macros to wrap regulator_set_enable_if_allowed() that masks error codes consumers typically do not expect to closer match the behavior of the Linux API. Also move the macros outside the #if #else blocks to make the macros available when !CONFIG_IS_ENABLED(DM_REGULATOR). Fixes: 076265b75e61 ("compat: regulator: add enable/disable macros") Signed-off-by: Jonas Karlman <[email protected]> Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'tools/scripts/README')
0 files changed, 0 insertions, 0 deletions