regulator: core.c Pass voltage to notifier when setting voltage
authorPhilip Rakity <prakity@marvell.com>
Fri, 15 Jun 2012 18:27:36 +0000 (11:27 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 17 Jun 2012 18:12:44 +0000 (19:12 +0100)
commit2f7baf89d3e4ed787989168cf31f2fdc04067586
tree1450c3b321f972a2d66f2d6e5d86df415c7b6cc8
parentd8493d210b69b2965236a8a02f5f6e2835ad5e30
regulator: core.c Pass voltage to notifier when setting voltage

The voltage being set should be passed to the call in handler
requesting the callback.  Currently this is not done.

The calling handler cannot call regulator_get_voltage() to get the
information since the mutex is held by the regulator and
deadlock occurs.

Without this change the receiver of the call in cannot know what
action to take.  This is used, for example, to set PAD voltages
when doing SD vccq voltage changes.

[Review and spelling fix in the commit log from Pankaj Jangra]

Signed-off-by: Philip Rakity <prakity@marvell.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c