diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/regulator/driver.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index cce575359712..bf3e653591b9 100644 --- a/include/linux/regulator/driver.h +++ b/include/linux/regulator/driver.h | |||
| @@ -43,6 +43,8 @@ enum regulator_status { | |||
| 43 | * @set_voltage: Set the voltage for the regulator within the range specified. | 43 | * @set_voltage: Set the voltage for the regulator within the range specified. |
| 44 | * The driver should select the voltage closest to min_uV. | 44 | * The driver should select the voltage closest to min_uV. |
| 45 | * @get_voltage: Return the currently configured voltage for the regulator. | 45 | * @get_voltage: Return the currently configured voltage for the regulator. |
| 46 | * @get_voltage_sel: Return the currently configured voltage selector for the | ||
| 47 | * regulator. | ||
| 46 | * @list_voltage: Return one of the supported voltages, in microvolts; zero | 48 | * @list_voltage: Return one of the supported voltages, in microvolts; zero |
| 47 | * if the selector indicates a voltage that is unusable on this system; | 49 | * if the selector indicates a voltage that is unusable on this system; |
| 48 | * or negative errno. Selectors range from zero to one less than | 50 | * or negative errno. Selectors range from zero to one less than |
| @@ -82,6 +84,7 @@ struct regulator_ops { | |||
| 82 | int (*set_voltage) (struct regulator_dev *, int min_uV, int max_uV, | 84 | int (*set_voltage) (struct regulator_dev *, int min_uV, int max_uV, |
| 83 | unsigned *selector); | 85 | unsigned *selector); |
| 84 | int (*get_voltage) (struct regulator_dev *); | 86 | int (*get_voltage) (struct regulator_dev *); |
| 87 | int (*get_voltage_sel) (struct regulator_dev *); | ||
| 85 | 88 | ||
| 86 | /* get/set regulator current */ | 89 | /* get/set regulator current */ |
| 87 | int (*set_current_limit) (struct regulator_dev *, | 90 | int (*set_current_limit) (struct regulator_dev *, |
