diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-02-06 04:09:48 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-02-08 12:26:03 +0100 |
commit | c66a566afbe6e2c94b1ae70f70cc1e3d4c73639b (patch) | |
tree | 8f1b8621037193da762fc1a4b52c2561b3733bdb /drivers/i2c/busses/i2c-nomadik.c | |
parent | regulator: core: if voltage scaling fails, restore original voltage values (diff) | |
download | linux-c66a566afbe6e2c94b1ae70f70cc1e3d4c73639b.tar.xz linux-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/i2c/busses/i2c-nomadik.c')
0 files changed, 0 insertions, 0 deletions