diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-08-04 20:09:52 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2009-09-17 09:47:05 +0200 |
commit | be721979dd6b335e4ab6f83abb5cc11c33662aa8 (patch) | |
tree | f08095efe3c60c0388f111611e57a9d873fca6a9 /include/linux/regulator/driver.h | |
parent | 0c73b992dd4c645f050344cb13142c0fd3496824 (diff) | |
download | linux-be721979dd6b335e4ab6f83abb5cc11c33662aa8.tar.gz linux-be721979dd6b335e4ab6f83abb5cc11c33662aa8.tar.bz2 linux-be721979dd6b335e4ab6f83abb5cc11c33662aa8.zip |
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/driver.h')
-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 |