mbox

[1/2] regulator: core: Add REGULATOR_EVENT_PRE_VOLTAGE_CHANGE (and ABORT)

Message ID 20140829110554.GN29327@sirena.org.uk
State New
Headers show

Pull-request

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git tags/voltage-ev

Message

Mark Brown Aug. 29, 2014, 11:05 a.m. UTC
On Thu, Aug 28, 2014 at 12:36:04PM -0700, Doug Anderson wrote:
> From: Heiko Stübner <heiko@sntech.de>
> 
> 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.

Applied, thanks.  I've created a tag for this, feel free to pull it into
any other tree that wants to use the feature:

The following changes since commit 7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9:

  Linux 3.17-rc1 (2014-08-16 10:40:26 -0600)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git tags/voltage-ev

for you to fetch changes up to 7179569aeb52197fd2a9909ba226c4c9cc0e2e2a:

  regulator: core: Add REGULATOR_EVENT_PRE_VOLTAGE_CHANGE (and ABORT) (2014-08-29 11:58:31 +0100)

----------------------------------------------------------------
regulator: Add voltage event notifications

Allow users to synchronize before as well as after a volatge change.

----------------------------------------------------------------
Heiko Stübner (1):
      regulator: core: Add REGULATOR_EVENT_PRE_VOLTAGE_CHANGE (and ABORT)

 drivers/regulator/core.c           | 63 +++++++++++++++++++++++++++++++++-----
 include/linux/regulator/consumer.h | 20 ++++++++++++
 2 files changed, 76 insertions(+), 7 deletions(-)