diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-08-04 22:09:52 +0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2009-09-17 11:47:05 +0400 |
commit | be721979dd6b335e4ab6f83abb5cc11c33662aa8 (patch) | |
tree | f08095efe3c60c0388f111611e57a9d873fca6a9 /include/linux/regulator | |
parent | 0c73b992dd4c645f050344cb13142c0fd3496824 (diff) | |
download | linux-be721979dd6b335e4ab6f83abb5cc11c33662aa8.tar.xz |
regulator: Provide mode to status conversion function
This is useful for implementing get_status() in terms of get_mode().
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/regulator')
-rw-r--r-- | include/linux/regulator/driver.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index 225f733e7533..ce1be708ca16 100644 --- a/include/linux/regulator/driver.h +++ b/include/linux/regulator/driver.h @@ -193,6 +193,8 @@ void *rdev_get_drvdata(struct regulator_dev *rdev); struct device *rdev_get_dev(struct regulator_dev *rdev); int rdev_get_id(struct regulator_dev *rdev); +int regulator_mode_to_status(unsigned int); + void *regulator_get_init_drvdata(struct regulator_init_data *reg_init_data); #endif |