summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorRichard Zhu <hongxing.zhu@nxp.com>2016-10-17 15:17:43 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit69456c412829f50fe7f6983fb3696a3e8847c3d6 (patch)
treea6a6128054763d1b82fc4886c55f1b3b8f56f5b3 /drivers/regulator
parenteedcb34fda4ca4bdcc793a00ea4bba2deaccb0fc (diff)
MLK-13387-3 regulator: consumer: add new event macro
Add one new regulator events macro 'REGULATOR_EVENT_AFT_DO_ENABLE'. 1.8v of imx7d pcie phy, should be turned on after the 1p0d(1.0v) of pcie phy is turned on. Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 684db55338af..8a9221c9246c 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -2135,6 +2135,7 @@ static int _regulator_do_enable(struct regulator_dev *rdev)
_regulator_enable_delay(delay);
trace_regulator_enable_complete(rdev_get_name(rdev));
+ _notifier_call_chain(rdev, REGULATOR_EVENT_AFT_DO_ENABLE, NULL);
return 0;
}