diff options
| author | Mark Brown <broonie@linaro.org> | 2013-10-24 06:11:37 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2013-10-24 06:11:37 -0400 |
| commit | 4c35c8676fb224d0cb328ab83237286f8e2df224 (patch) | |
| tree | f1b1dfb4444cb17b1fd79d9d5e646e4663d3364c /include/linux/regulator | |
| parent | a6117615a21323140e67d394a3301fd319468f1c (diff) | |
| parent | 8828bae464b129abed95b748263f1ab53bdc5755 (diff) | |
Merge remote-tracking branch 'regulator/topic/linear' into regulator-next
Diffstat (limited to 'include/linux/regulator')
| -rw-r--r-- | include/linux/regulator/driver.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index c8b492c6b6a8..9370e65348a4 100644 --- a/include/linux/regulator/driver.h +++ b/include/linux/regulator/driver.h | |||
| @@ -46,19 +46,26 @@ enum regulator_status { | |||
| 46 | * regulator_list_linear_range(). | 46 | * regulator_list_linear_range(). |
| 47 | * | 47 | * |
| 48 | * @min_uV: Lowest voltage in range | 48 | * @min_uV: Lowest voltage in range |
| 49 | * @max_uV: Highest voltage in range | ||
| 50 | * @min_sel: Lowest selector for range | 49 | * @min_sel: Lowest selector for range |
| 51 | * @max_sel: Highest selector for range | 50 | * @max_sel: Highest selector for range |
| 52 | * @uV_step: Step size | 51 | * @uV_step: Step size |
| 53 | */ | 52 | */ |
| 54 | struct regulator_linear_range { | 53 | struct regulator_linear_range { |
| 55 | unsigned int min_uV; | 54 | unsigned int min_uV; |
| 56 | unsigned int max_uV; | ||
| 57 | unsigned int min_sel; | 55 | unsigned int min_sel; |
| 58 | unsigned int max_sel; | 56 | unsigned int max_sel; |
| 59 | unsigned int uV_step; | 57 | unsigned int uV_step; |
| 60 | }; | 58 | }; |
| 61 | 59 | ||
| 60 | /* Initialize struct regulator_linear_range */ | ||
| 61 | #define REGULATOR_LINEAR_RANGE(_min_uV, _min_sel, _max_sel, _step_uV) \ | ||
| 62 | { \ | ||
| 63 | .min_uV = _min_uV, \ | ||
| 64 | .min_sel = _min_sel, \ | ||
| 65 | .max_sel = _max_sel, \ | ||
| 66 | .uV_step = _step_uV, \ | ||
| 67 | } | ||
| 68 | |||
| 62 | /** | 69 | /** |
| 63 | * struct regulator_ops - regulator operations. | 70 | * struct regulator_ops - regulator operations. |
| 64 | * | 71 | * |
