diff options
| author | Jonas Karlman <[email protected]> | 2026-07-10 13:15:53 +0000 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2026-07-12 16:18:32 +0800 |
| commit | 0f04bbf9ab3751405308f0a8aef2b6016a072b7d (patch) | |
| tree | fb9bc6d5c23f545b5ae8fb4e352cdcdf4e700b00 /src/arc | |
| parent | 35c3e733fe4cbaa91f6cc02ddbb30f6feb3eb1fc (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 'src/arc')
0 files changed, 0 insertions, 0 deletions
