Loading drivers/regulator/core.c +2 −0 Original line number Diff line number Diff line Loading @@ -1676,6 +1676,8 @@ static int _regulator_enable(struct regulator_dev *rdev) if (ret < 0) return ret; _notifier_call_chain(rdev, REGULATOR_EVENT_ENABLE, NULL); } else if (ret < 0) { rdev_err(rdev, "is_enabled() failed: %d\n", ret); return ret; Loading include/linux/regulator/consumer.h +2 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,7 @@ struct notifier_block; * FORCE_DISABLE Regulator forcibly shut down by software. * VOLTAGE_CHANGE Regulator voltage changed. * DISABLE Regulator was disabled. * ENABLE Regulator was enabled. * * NOTE: These events can be OR'ed together when passed into handler. */ Loading @@ -108,6 +109,7 @@ struct notifier_block; #define REGULATOR_EVENT_FORCE_DISABLE 0x20 #define REGULATOR_EVENT_VOLTAGE_CHANGE 0x40 #define REGULATOR_EVENT_DISABLE 0x80 #define REGULATOR_EVENT_ENABLE 0x100 struct regulator; Loading Loading
drivers/regulator/core.c +2 −0 Original line number Diff line number Diff line Loading @@ -1676,6 +1676,8 @@ static int _regulator_enable(struct regulator_dev *rdev) if (ret < 0) return ret; _notifier_call_chain(rdev, REGULATOR_EVENT_ENABLE, NULL); } else if (ret < 0) { rdev_err(rdev, "is_enabled() failed: %d\n", ret); return ret; Loading
include/linux/regulator/consumer.h +2 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,7 @@ struct notifier_block; * FORCE_DISABLE Regulator forcibly shut down by software. * VOLTAGE_CHANGE Regulator voltage changed. * DISABLE Regulator was disabled. * ENABLE Regulator was enabled. * * NOTE: These events can be OR'ed together when passed into handler. */ Loading @@ -108,6 +109,7 @@ struct notifier_block; #define REGULATOR_EVENT_FORCE_DISABLE 0x20 #define REGULATOR_EVENT_VOLTAGE_CHANGE 0x40 #define REGULATOR_EVENT_DISABLE 0x80 #define REGULATOR_EVENT_ENABLE 0x100 struct regulator; Loading