diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-04-20 12:35:31 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-23 06:39:27 -0400 |
commit | 3e655618e1316719d826eab5af3510128d45f0e6 (patch) | |
tree | 874c71386f8155c8433d380e8ec1615227ac4b2b /drivers/regulator | |
parent | fcf371ee5624cc87abac205cd0dad2432d7f0346 (diff) |
regulator: lp3971: Convert to use regulator_map_voltage_ascend
All regulators have ascendant voltage list in this driver.
Thus use regulator_map_voltage_ascend is more efficient than the default
regulator_map_voltage_iterate.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/lp3971.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/lp3971.c b/drivers/regulator/lp3971.c index 9cb2c0f34515..d8af9e773310 100644 --- a/drivers/regulator/lp3971.c +++ b/drivers/regulator/lp3971.c | |||
@@ -163,6 +163,7 @@ static int lp3971_ldo_set_voltage_sel(struct regulator_dev *dev, | |||
163 | 163 | ||
164 | static struct regulator_ops lp3971_ldo_ops = { | 164 | static struct regulator_ops lp3971_ldo_ops = { |
165 | .list_voltage = regulator_list_voltage_table, | 165 | .list_voltage = regulator_list_voltage_table, |
166 | .map_voltage = regulator_map_voltage_ascend, | ||
166 | .is_enabled = lp3971_ldo_is_enabled, | 167 | .is_enabled = lp3971_ldo_is_enabled, |
167 | .enable = lp3971_ldo_enable, | 168 | .enable = lp3971_ldo_enable, |
168 | .disable = lp3971_ldo_disable, | 169 | .disable = lp3971_ldo_disable, |
@@ -236,6 +237,7 @@ static int lp3971_dcdc_set_voltage_sel(struct regulator_dev *dev, | |||
236 | 237 | ||
237 | static struct regulator_ops lp3971_dcdc_ops = { | 238 | static struct regulator_ops lp3971_dcdc_ops = { |
238 | .list_voltage = regulator_list_voltage_table, | 239 | .list_voltage = regulator_list_voltage_table, |
240 | .map_voltage = regulator_map_voltage_ascend, | ||
239 | .is_enabled = lp3971_dcdc_is_enabled, | 241 | .is_enabled = lp3971_dcdc_is_enabled, |
240 | .enable = lp3971_dcdc_enable, | 242 | .enable = lp3971_dcdc_enable, |
241 | .disable = lp3971_dcdc_disable, | 243 | .disable = lp3971_dcdc_disable, |