projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bb495e
)
regulator: lp8755: Provide map_voltage()
author
Mark Brown
<broonie@linaro.org>
Tue, 2 Jul 2013 22:57:35 +0000
(23:57 +0100)
committer
Mark Brown
<broonie@linaro.org>
Tue, 2 Jul 2013 22:59:39 +0000
(23:59 +0100)
Improve performance when setting voltages by avoiding a scan through the
selectors when we can simply calculate the selector we want.
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/lp8755.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/lp8755.c
b/drivers/regulator/lp8755.c
index f0f6ea05065bcb4dd1dacdb84f6b362c237c21e8..e29634148ed2d8fc06c857f55587befc3bf55f6b 100644
(file)
--- a/
drivers/regulator/lp8755.c
+++ b/
drivers/regulator/lp8755.c
@@
-229,6
+229,7
@@
err_i2c:
}
static struct regulator_ops lp8755_buck_ops = {
+ .map_voltage = regulator_map_voltage_linear,
.list_voltage = regulator_list_voltage_linear,
.set_voltage_sel = regulator_set_voltage_sel_regmap,
.get_voltage_sel = regulator_get_voltage_sel_regmap,