diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-04-20 12:36:56 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-23 06:39:33 -0400 |
commit | b50003b69dbb60097cf55c44f8e2b4dc25bd0b12 (patch) | |
tree | d69018fbe0426216344e28f37987f3bae417656a /drivers/regulator/lp3972.c | |
parent | 3e655618e1316719d826eab5af3510128d45f0e6 (diff) |
regulator: lp3972: 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/lp3972.c')
-rw-r--r-- | drivers/regulator/lp3972.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/lp3972.c b/drivers/regulator/lp3972.c index 0baabcfb578a..61e4cf9edf6e 100644 --- a/drivers/regulator/lp3972.c +++ b/drivers/regulator/lp3972.c | |||
@@ -309,6 +309,7 @@ static int lp3972_ldo_set_voltage_sel(struct regulator_dev *dev, | |||
309 | 309 | ||
310 | static struct regulator_ops lp3972_ldo_ops = { | 310 | static struct regulator_ops lp3972_ldo_ops = { |
311 | .list_voltage = regulator_list_voltage_table, | 311 | .list_voltage = regulator_list_voltage_table, |
312 | .map_voltage = regulator_map_voltage_ascend, | ||
312 | .is_enabled = lp3972_ldo_is_enabled, | 313 | .is_enabled = lp3972_ldo_is_enabled, |
313 | .enable = lp3972_ldo_enable, | 314 | .enable = lp3972_ldo_enable, |
314 | .disable = lp3972_ldo_disable, | 315 | .disable = lp3972_ldo_disable, |
@@ -389,6 +390,7 @@ static int lp3972_dcdc_set_voltage_sel(struct regulator_dev *dev, | |||
389 | 390 | ||
390 | static struct regulator_ops lp3972_dcdc_ops = { | 391 | static struct regulator_ops lp3972_dcdc_ops = { |
391 | .list_voltage = regulator_list_voltage_table, | 392 | .list_voltage = regulator_list_voltage_table, |
393 | .map_voltage = regulator_map_voltage_ascend, | ||
392 | .is_enabled = lp3972_dcdc_is_enabled, | 394 | .is_enabled = lp3972_dcdc_is_enabled, |
393 | .enable = lp3972_dcdc_enable, | 395 | .enable = lp3972_dcdc_enable, |
394 | .disable = lp3972_dcdc_disable, | 396 | .disable = lp3972_dcdc_disable, |