diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-12-19 19:27:58 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-12-20 15:06:20 +0100 |
commit | ad2c5cb39faf64881ce392a410df4f01315439e9 (patch) | |
tree | 1efcf271a84f6b6fa8d93c5c633c44671f2cd0e0 /include/regulator.h | |
parent | afb73b61e1d9b215d450df32bbd4687ab914adae (diff) | |
download | barebox-ad2c5cb39faf64881ce392a410df4f01315439e9.tar.gz barebox-ad2c5cb39faf64881ce392a410df4f01315439e9.tar.xz |
regulator: add function to get regulator by its name
Useful for getting regulators that are not correctly associated with a
device.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/regulator.h')
-rw-r--r-- | include/regulator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/regulator.h b/include/regulator.h index 156acb82f8..a445c5c3d1 100644 --- a/include/regulator.h +++ b/include/regulator.h @@ -116,6 +116,7 @@ void regulators_print(void); #ifdef CONFIG_REGULATOR struct regulator *regulator_get(struct device_d *, const char *); +struct regulator *regulator_get_name(const char *name); int regulator_enable(struct regulator *); int regulator_disable(struct regulator *); int regulator_is_enabled_regmap(struct regulator_dev *); |