aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/max8660.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-02-06 11:09:48 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-02-08 11:26:03 +0000
commitc66a566afbe6e2c94b1ae70f70cc1e3d4c73639b (patch)
tree8f1b8621037193da762fc1a4b52c2561b3733bdb /drivers/regulator/max8660.c
parentregulator: core: if voltage scaling fails, restore original voltage values (diff)
downloadlinux-dev-c66a566afbe6e2c94b1ae70f70cc1e3d4c73639b.tar.xz
linux-dev-c66a566afbe6e2c94b1ae70f70cc1e3d4c73639b.zip
regulator: core: Optimize _regulator_do_set_voltage if voltage does not change
Optimize _regulator_do_set_voltage() for the case selector is equal to old_selector. Since the voltage does not change, we don't need to call set_voltage_sel() and set_voltage_time_sel() in this case. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/max8660.c')
0 files changed, 0 insertions, 0 deletions