regulator: Expand regulator notifier events
authorAlex Frid <afrid@nvidia.com>
Wed, 20 Jul 2011 22:04:06 +0000 (15:04 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Fri, 23 Mar 2012 21:15:10 +0000 (14:15 -0700)
commit24eec5beaaf16f640688fda1133808d2f5865c7a
treee36a9217d07f84f1fa85a2ac7c9f876739c4a02a
parent7eadbb54a3b0ff25bbae1b202a16a877d049adbb
regulator: Expand regulator notifier events

Add regulator enable notifications (not sent by the current code).
Add voltage notifications sent only if regulator output is actually
changed (keep intact existing voltage change notification that is
sent unconditionally - even if voltage change was not allowed by
constraints, or no actual change since regulator is disabled):

PRE_ENABLE     Regulator is to be enabled
POST_ENABLE    Regulator was enabled
OUT_PRECHANGE  Regulator is enabled and its voltage is to be changed
OUT_POSTCHANGE Regulator is enabled and its voltage was changed

Bug 853132

Original-Change-Id: I2759ada1c5d1e43f746f6c866f9b3c203b68aed6
Reviewed-on: http://git-master/r/42262
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Karan Jhavar <kjhavar@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: Rdac9b19d1f999e889aae8e2eb72f9b60057dd05a
drivers/regulator/core.c
include/linux/regulator/consumer.h