diff options
| author | David Collins <collinsd@codeaurora.org> | 2014-08-21 16:37:39 -0700 |
|---|---|---|
| committer | Rohit Vaswani <rvaswani@codeaurora.org> | 2016-03-01 12:22:34 -0800 |
| commit | 01f8ba7f677f7f9966aa1265b37fd086373ec654 (patch) | |
| tree | 10e0ab4314df994ad4e0935481f29ded9b6b90e9 /include/linux | |
| parent | 0a9312ff449c39ee739460af3a1714ee78b4b34b (diff) | |
regulator: add notifier event for regulator enable
Add a notifier event which is triggered when a regulator is
enabled. This can be used by a driver which must configure the
hardware state whenever a given supply is enabled even if some
other consumer was responsible for enabling the supply.
Change-Id: Ic8363308b64953451dd01756e1bfdc2a64527096
Signed-off-by: David Collins <collinsd@codeaurora.org>
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
[osvaldob: resolve trivial merge conflicts]
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
[adharmap: 0x100 was taken by PRE_VOLTAGE_CHANGE use 0x1000 for ENABLE]
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/regulator/consumer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 9e0e76992be0..8810fa808c96 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h @@ -103,6 +103,7 @@ struct regmap; * Data passed is old voltage cast to (void *). * PRE_DISABLE Regulator is about to be disabled * ABORT_DISABLE Regulator disable failed for some reason + * ENABLE Regulator was enabled. * * NOTE: These events can be OR'ed together when passed into handler. */ @@ -119,6 +120,7 @@ struct regmap; #define REGULATOR_EVENT_ABORT_VOLTAGE_CHANGE 0x200 #define REGULATOR_EVENT_PRE_DISABLE 0x400 #define REGULATOR_EVENT_ABORT_DISABLE 0x800 +#define REGULATOR_EVENT_ENABLE 0x1000 /** * struct pre_voltage_change_data - Data sent with PRE_VOLTAGE_CHANGE event |
