regulator: Optimise out noop voltage changes
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 16 Dec 2010 15:49:37 +0000 (15:49 +0000)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 12 Jan 2011 14:33:05 +0000 (14:33 +0000)
commit95a3c23ae620c1b4c499746e70f4034bdc067737
treedb55c660ce1f3201135850510b11a09c1c16c221
parent606a25628187ce863b48d43ca42bc0cbe8342de9
regulator: Optimise out noop voltage changes

If a consumer sets the same voltage range as is currently configured
for that consumer there's no need to run through setting the voltage
again. This pattern may occur with some CPUfreq implementations where
the same voltage range is used for multiple frequencies.

Reported-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c