diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-10-10 21:32:18 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-11 07:49:16 -0400 |
commit | 8828bae464b129abed95b748263f1ab53bdc5755 (patch) | |
tree | 505148f6e9ed7a89a238cc8f1b3042e459f7c703 /drivers/regulator/tps65912-regulator.c | |
parent | e277e656804c85a0729d4fd8cdd3c8ab3e6b3b86 (diff) |
regulator: Add REGULATOR_LINEAR_RANGE macro
Add REGULATOR_LINEAR_RANGE macro and convert regulator drivers to use it.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/tps65912-regulator.c')
-rw-r--r-- | drivers/regulator/tps65912-regulator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/regulator/tps65912-regulator.c b/drivers/regulator/tps65912-regulator.c index 9fc87d8c9ce5..697eab8e74d8 100644 --- a/drivers/regulator/tps65912-regulator.c +++ b/drivers/regulator/tps65912-regulator.c | |||
@@ -119,9 +119,9 @@ struct tps65912_reg { | |||
119 | }; | 119 | }; |
120 | 120 | ||
121 | static const struct regulator_linear_range tps65912_ldo_ranges[] = { | 121 | static const struct regulator_linear_range tps65912_ldo_ranges[] = { |
122 | { .min_uV = 800000, .min_sel = 0, .max_sel = 32, .uV_step = 25000 }, | 122 | REGULATOR_LINEAR_RANGE(800000, 0, 32, 25000), |
123 | { .min_uV = 1650000, .min_sel = 33, .max_sel = 60, .uV_step = 50000 }, | 123 | REGULATOR_LINEAR_RANGE(1650000, 33, 60, 50000), |
124 | { .min_uV = 3100000, .min_sel = 61, .max_sel = 63, .uV_step = 100000 }, | 124 | REGULATOR_LINEAR_RANGE(3100000, 61, 63, 100000), |
125 | }; | 125 | }; |
126 | 126 | ||
127 | static int tps65912_get_range(struct tps65912_reg *pmic, int id) | 127 | static int tps65912_get_range(struct tps65912_reg *pmic, int id) |