]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
regulator: core: Optimize _regulator_do_set_voltage if voltage does not change
authorAxel Lin <axel.lin@ingics.com>
Wed, 6 Feb 2013 03:09:48 +0000 (11:09 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 8 Feb 2013 11:26:03 +0000 (11:26 +0000)
commitc66a566afbe6e2c94b1ae70f70cc1e3d4c73639b
tree8f1b8621037193da762fc1a4b52c2561b3733bdb
parent92d7a55879c01b30349045501108e775655a4b92
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>
drivers/regulator/core.c