]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Add REGULATOR_EVENT_PRE_VOLTAGE_CHANGE (and ABORT)
authorHeiko Stübner <heiko@sntech.de>
Thu, 28 Aug 2014 19:36:04 +0000 (12:36 -0700)
committerMark Brown <broonie+linaro@kernel.org>
Fri, 29 Aug 2014 10:58:31 +0000 (11:58 +0100)
commit7d134514ba32034ea71c3a6c9a0b4cf9bfe89a04
tree39757ab5ecbc23dc54a7b8489f4b104156439364
parentca09702717581356bb91e5bbfbb244eda384a004
regulator: core: Add REGULATOR_EVENT_PRE_VOLTAGE_CHANGE (and ABORT)

In some cases we need to know when a regulator is about to be changed.
Add a way for clients to be notified.  Note that for set_voltage() we
don't necessarily know what voltage we'll end up with, so we tell the
client what the range will be so they can prepare.

Signed-off-by: Heiko Stübner <heiko@sntech.de>
Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Mark Brown <broonie+linaro@kernel.org>
drivers/regulator/core.c
include/linux/regulator/consumer.h