Add notification event for the pre-disable of regulator.
This is require to disable IO power of the Tegra IO rails.
bug
200112685
Change-Id: I3a099b584095f178d5cc6a505e4c3860906bcae0
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit
217af244f756ec580dc7a6601e9fe17eb70b8a77)
Reviewed-on: http://git-master/r/754979
delay = 0;
}
+ _notifier_call_chain(rdev, REGULATOR_EVENT_PRE_DISABLE, NULL);
+
trace_regulator_disable(rdev_get_name(rdev));
if (rdev->ena_pin) {
#define REGULATOR_EVENT_POST_ENABLE 0x200
#define REGULATOR_EVENT_OUT_PRECHANGE 0x400
#define REGULATOR_EVENT_OUT_POSTCHANGE 0x800
+#define REGULATOR_EVENT_PRE_DISABLE 0x1000
+#define REGULATOR_EVENT_POST_DISABLE REGULATOR_EVENT_DISABLE
struct regulator;