diff options
Diffstat (limited to 'include/linux/regulator/consumer.h')
| -rw-r--r-- | include/linux/regulator/consumer.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 14ec18d5e18b..f8a8733068a7 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h | |||
| @@ -37,6 +37,7 @@ | |||
| 37 | 37 | ||
| 38 | struct device; | 38 | struct device; |
| 39 | struct notifier_block; | 39 | struct notifier_block; |
| 40 | struct regmap; | ||
| 40 | 41 | ||
| 41 | /* | 42 | /* |
| 42 | * Regulator operating modes. | 43 | * Regulator operating modes. |
| @@ -215,6 +216,13 @@ int regulator_set_optimum_mode(struct regulator *regulator, int load_uA); | |||
| 215 | 216 | ||
| 216 | int regulator_allow_bypass(struct regulator *regulator, bool allow); | 217 | int regulator_allow_bypass(struct regulator *regulator, bool allow); |
| 217 | 218 | ||
| 219 | struct regmap *regulator_get_regmap(struct regulator *regulator); | ||
| 220 | int regulator_get_hardware_vsel_register(struct regulator *regulator, | ||
| 221 | unsigned *vsel_reg, | ||
| 222 | unsigned *vsel_mask); | ||
| 223 | int regulator_list_hardware_vsel(struct regulator *regulator, | ||
| 224 | unsigned selector); | ||
| 225 | |||
| 218 | /* regulator notifier block */ | 226 | /* regulator notifier block */ |
| 219 | int regulator_register_notifier(struct regulator *regulator, | 227 | int regulator_register_notifier(struct regulator *regulator, |
| 220 | struct notifier_block *nb); | 228 | struct notifier_block *nb); |
| @@ -457,6 +465,24 @@ static inline int regulator_allow_bypass(struct regulator *regulator, | |||
| 457 | return 0; | 465 | return 0; |
| 458 | } | 466 | } |
| 459 | 467 | ||
| 468 | static inline struct regmap *regulator_get_regmap(struct regulator *regulator) | ||
| 469 | { | ||
| 470 | return ERR_PTR(-EOPNOTSUPP); | ||
| 471 | } | ||
| 472 | |||
| 473 | static inline int regulator_get_hardware_vsel_register(struct regulator *regulator, | ||
| 474 | unsigned *vsel_reg, | ||
| 475 | unsigned *vsel_mask) | ||
| 476 | { | ||
| 477 | return -EOPNOTSUPP; | ||
| 478 | } | ||
| 479 | |||
| 480 | static inline int regulator_list_hardware_vsel(struct regulator *regulator, | ||
| 481 | unsigned selector) | ||
| 482 | { | ||
| 483 | return -EOPNOTSUPP; | ||
| 484 | } | ||
| 485 | |||
| 460 | static inline int regulator_register_notifier(struct regulator *regulator, | 486 | static inline int regulator_register_notifier(struct regulator *regulator, |
| 461 | struct notifier_block *nb) | 487 | struct notifier_block *nb) |
| 462 | { | 488 | { |
