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)
commit7179569aeb52197fd2a9909ba226c4c9cc0e2e2a
tree39757ab5ecbc23dc54a7b8489f4b104156439364
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9
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