diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-06-03 10:46:14 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-03 15:11:09 -0400 |
commit | 2e3f7f26e1323fb302921c4575a499710636d531 (patch) | |
tree | b0c79916e9eda99cc162cd379e80651af9c63ff9 /drivers/regulator/max77686.c | |
parent | fcbb71f6f8084b74fef54e40c9e515105ccc4e6e (diff) |
regulator: max77686: Use regulator_map_voltage_linear for simple linear mappings
Both max77686_ops and max77686_buck_dvs_ops use simple linear voltage maps.
Thus use regulator_map_voltage_linear is more efficient than using the defult
regulator_map_voltage_iterate.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/max77686.c')
-rw-r--r-- | drivers/regulator/max77686.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/max77686.c b/drivers/regulator/max77686.c index 70046f8032fd..4e9f4f3f062b 100644 --- a/drivers/regulator/max77686.c +++ b/drivers/regulator/max77686.c | |||
@@ -90,6 +90,7 @@ static int max77686_set_voltage_time_sel(struct regulator_dev *rdev, | |||
90 | 90 | ||
91 | static struct regulator_ops max77686_ops = { | 91 | static struct regulator_ops max77686_ops = { |
92 | .list_voltage = regulator_list_voltage_linear, | 92 | .list_voltage = regulator_list_voltage_linear, |
93 | .map_voltage = regulator_map_voltage_linear, | ||
93 | .is_enabled = regulator_is_enabled_regmap, | 94 | .is_enabled = regulator_is_enabled_regmap, |
94 | .enable = regulator_enable_regmap, | 95 | .enable = regulator_enable_regmap, |
95 | .disable = regulator_disable_regmap, | 96 | .disable = regulator_disable_regmap, |
@@ -100,6 +101,7 @@ static struct regulator_ops max77686_ops = { | |||
100 | 101 | ||
101 | static struct regulator_ops max77686_buck_dvs_ops = { | 102 | static struct regulator_ops max77686_buck_dvs_ops = { |
102 | .list_voltage = regulator_list_voltage_linear, | 103 | .list_voltage = regulator_list_voltage_linear, |
104 | .map_voltage = regulator_map_voltage_linear, | ||
103 | .is_enabled = regulator_is_enabled_regmap, | 105 | .is_enabled = regulator_is_enabled_regmap, |
104 | .enable = regulator_enable_regmap, | 106 | .enable = regulator_enable_regmap, |
105 | .disable = regulator_disable_regmap, | 107 | .disable = regulator_disable_regmap, |