summaryrefslogtreecommitdiff
path: root/include/linux/regulator
diff options
context:
space:
mode:
authorRichard Zhu <Richard.Zhu@freescale.com>2014-12-25 14:28:06 +0800
committerNitin Garg <nitin.garg@freescale.com>2015-09-17 09:21:10 -0500
commit8a2eb8d78224512be0f9345fdb3337aee73730b0 (patch)
treebd2c8c9cee804be625a31fd60beec8a56378675d /include/linux/regulator
parent7d62b96de55ec87bbb573e1971098aa1a0014c7a (diff)
MLK-10058-2 regulator: consumer: define pre_xxx event macros
Some gpc operations are mandatory required when iMX6SX PCIe PHY is powered on/off. use the notify framwork to encapsulate the pre-operations in gpc driver - add two pre-xxx macros into consumer.h - kick off the pre-xxx events in enable/disalbe call back. Signed-off-by: Richard Zhu <Richard.Zhu@freescale.com>
Diffstat (limited to 'include/linux/regulator')
-rw-r--r--include/linux/regulator/consumer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h
index e530681bea70..2cd6d993b4a2 100644
--- a/include/linux/regulator/consumer.h
+++ b/include/linux/regulator/consumer.h
@@ -105,6 +105,8 @@ struct notifier_block;
#define REGULATOR_EVENT_FORCE_DISABLE 0x20
#define REGULATOR_EVENT_VOLTAGE_CHANGE 0x40
#define REGULATOR_EVENT_DISABLE 0x80
+#define REGULATOR_EVENT_PRE_DISABLE 0x100
+#define REGULATOR_EVENT_PRE_ENABLE 0x200
struct regulator;