diff options
| author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2012-06-19 11:44:39 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-19 18:22:30 -0400 |
| commit | 15719ccc274981b19ad8fe9ac20c94249de8a257 (patch) | |
| tree | df5d6a07460b7446262170387b940353bf6b73ae /include/linux/regulator | |
| parent | dfad84aeab5f71b33a12e6803a809f698bdef5a2 (diff) | |
regulator: extend the fixed dummy voltage regulator to accept voltage
Trivially extend the regulator_register_always_on() helper function to be
even more useful by adding a voltage parameter to it.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/regulator')
| -rw-r--r-- | include/linux/regulator/fixed.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/regulator/fixed.h b/include/linux/regulator/fixed.h index 6b9325b5e371..680f24e08af2 100644 --- a/include/linux/regulator/fixed.h +++ b/include/linux/regulator/fixed.h | |||
| @@ -59,16 +59,16 @@ struct regulator_consumer_supply; | |||
| 59 | 59 | ||
| 60 | #if IS_ENABLED(CONFIG_REGULATOR) | 60 | #if IS_ENABLED(CONFIG_REGULATOR) |
| 61 | struct platform_device *regulator_register_always_on(int id, const char *name, | 61 | struct platform_device *regulator_register_always_on(int id, const char *name, |
| 62 | struct regulator_consumer_supply *supplies, int num_supplies); | 62 | struct regulator_consumer_supply *supplies, int num_supplies, int uv); |
| 63 | #else | 63 | #else |
| 64 | static inline struct platform_device *regulator_register_always_on(int id, const char *name, | 64 | static inline struct platform_device *regulator_register_always_on(int id, const char *name, |
| 65 | struct regulator_consumer_supply *supplies, int num_supplies) | 65 | struct regulator_consumer_supply *supplies, int num_supplies, int uv) |
| 66 | { | 66 | { |
| 67 | return NULL; | 67 | return NULL; |
| 68 | } | 68 | } |
| 69 | #endif | 69 | #endif |
| 70 | 70 | ||
| 71 | #define regulator_register_fixed(id, s, ns) regulator_register_always_on(id, \ | 71 | #define regulator_register_fixed(id, s, ns) regulator_register_always_on(id, \ |
| 72 | "fixed-dummy", s, ns) | 72 | "fixed-dummy", s, ns, 0) |
| 73 | 73 | ||
| 74 | #endif | 74 | #endif |
