diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-02-06 07:09:48 +0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-02-08 15:26:03 +0400 |
commit | c66a566afbe6e2c94b1ae70f70cc1e3d4c73639b (patch) | |
tree | 8f1b8621037193da762fc1a4b52c2561b3733bdb /drivers/regulator/tps65090-regulator.c | |
parent | 92d7a55879c01b30349045501108e775655a4b92 (diff) | |
download | linux-c66a566afbe6e2c94b1ae70f70cc1e3d4c73639b.tar.xz |
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/tps65090-regulator.c')
0 files changed, 0 insertions, 0 deletions