zephyr/drivers/regulator
Gerard Marull-Paretas 7feb008c85 drivers: regulator: common: allow to specify on by default
Some regulators are enabled by default, however, such condition cannot
be captured now by the regulator driver API. Refactor
regulator_common_init_enable to regulator_common_init (enable removed,
as it also sets mode) and add a new argument to specify such condition.
With this change, regulator_disable() and regulator_is_enabled() work as
expected without a first call to regulator_enable().

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-01-09 16:19:09 +00:00
..
CMakeLists.txt drivers: regulator: add fake driver 2022-12-20 10:15:29 +00:00
Kconfig drivers: regulator: add fake driver 2022-12-20 10:15:29 +00:00
Kconfig.fake drivers: regulator: add fake driver 2022-12-20 10:15:29 +00:00
Kconfig.fixed drivers: regulator: Update Kconfig 2022-08-17 09:58:55 -05:00
Kconfig.npm6001 drivers: regulator: initial driver for nPM6001 2022-12-16 11:26:47 +01:00
Kconfig.pca9420 drivers: regulator: pca9420: store common config in parent device 2022-11-29 11:54:31 +01:00
regulator_common.c drivers: regulator: common: allow to specify on by default 2023-01-09 16:19:09 +00:00
regulator_fake.c drivers: regulator: common: allow to specify on by default 2023-01-09 16:19:09 +00:00
regulator_fixed.c drivers: regulator: common: allow to specify on by default 2023-01-09 16:19:09 +00:00
regulator_npm6001.c drivers: regulator: common: allow to specify on by default 2023-01-09 16:19:09 +00:00
regulator_pca9420.c drivers: regulator: common: allow to specify on by default 2023-01-09 16:19:09 +00:00
regulator_shell.c drivers: regulator: shell: fix isdigit() usage 2023-01-04 11:19:25 +01:00