Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36a7b22a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "regulator: add notifier event for regulator enable"

parents 6f9fc548 69612651
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
+2 −0
Original line number Diff line number Diff line
@@ -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.
 */
@@ -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;