diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-02-06 11:09:48 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-02-08 11:26:03 +0000 |
commit | c66a566afbe6e2c94b1ae70f70cc1e3d4c73639b (patch) | |
tree | 8f1b8621037193da762fc1a4b52c2561b3733bdb /kernel/spinlock.c | |
parent | 92d7a55879c01b30349045501108e775655a4b92 (diff) |
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 'kernel/spinlock.c')
0 files changed, 0 insertions, 0 deletions