]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Take into account the requirements of all consumers
authorThomas Petazzoni <t-petazzoni@ti.com>
Fri, 3 Dec 2010 10:31:07 +0000 (11:31 +0100)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 12 Jan 2011 14:33:01 +0000 (14:33 +0000)
commit229743925894be20bf717b804ea2565e46a29723
tree6f847a88c7d6fbbdc90b6457cc29acc252b0e92a
parent0dab9b8a837159d9d52b1cfb1881ddffe511b178
regulator: Take into account the requirements of all consumers

Extend the regulator_set_voltage() function to take into account the
voltage requirements of all consumers of the regulator being changed,
in order to set the voltage to the minimum voltage acceptable to all
consumers. The existing behaviour was that the latest
regulator_set_voltage() call would win over previous
regulator_set_voltage() calls even if setting the voltage to a
non-acceptable level from other consumers.

Signed-off-by: Thomas Petazzoni <t-petazzoni@ti.com>
Cc: Liam Girdwood <lrg@slimlogic.co.uk>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c