diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-27 19:04:23 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-09 23:25:10 -0400 |
commit | df36793115b4f68181877a1c89bac54feadd965d (patch) | |
tree | 2edb5c9d4ad8c6d1e0bc5d2b187c9248c313e6f0 /include/linux/regulator | |
parent | f59c8f9fe689790248ae7aa7426579982050638c (diff) |
regulator: core: Provide regmap get/set bypass operations
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/regulator')
-rw-r--r-- | include/linux/regulator/driver.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index c9869cfbf261..7274a469e8d9 100644 --- a/include/linux/regulator/driver.h +++ b/include/linux/regulator/driver.h | |||
@@ -214,6 +214,8 @@ struct regulator_desc { | |||
214 | unsigned int vsel_mask; | 214 | unsigned int vsel_mask; |
215 | unsigned int enable_reg; | 215 | unsigned int enable_reg; |
216 | unsigned int enable_mask; | 216 | unsigned int enable_mask; |
217 | unsigned int bypass_reg; | ||
218 | unsigned int bypass_mask; | ||
217 | 219 | ||
218 | unsigned int enable_time; | 220 | unsigned int enable_time; |
219 | }; | 221 | }; |
@@ -320,6 +322,8 @@ int regulator_disable_regmap(struct regulator_dev *rdev); | |||
320 | int regulator_set_voltage_time_sel(struct regulator_dev *rdev, | 322 | int regulator_set_voltage_time_sel(struct regulator_dev *rdev, |
321 | unsigned int old_selector, | 323 | unsigned int old_selector, |
322 | unsigned int new_selector); | 324 | unsigned int new_selector); |
325 | int regulator_set_bypass_regmap(struct regulator_dev *rdev, bool enable); | ||
326 | int regulator_get_bypass_regmap(struct regulator_dev *rdev, bool *enable); | ||
323 | 327 | ||
324 | void *regulator_get_init_drvdata(struct regulator_init_data *reg_init_data); | 328 | void *regulator_get_init_drvdata(struct regulator_init_data *reg_init_data); |
325 | 329 | ||