]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/regulator/consumer.h
Merge remote-tracking branches 'regulator/topic/sky81452' and 'regulator/topic/stub...
[karo-tx-linux.git] / include / linux / regulator / consumer.h
index c0c0a437ec756254e657d7cd18e239927d3f86ba..d17e1ff7ad019987d4c4f944dd3a6b20aa571807 100644 (file)
@@ -35,6 +35,8 @@
 #ifndef __LINUX_REGULATOR_CONSUMER_H_
 #define __LINUX_REGULATOR_CONSUMER_H_
 
+#include <linux/err.h>
+
 struct device;
 struct notifier_block;
 struct regmap;
@@ -99,6 +101,8 @@ struct regmap;
  *                      Data passed is "struct pre_voltage_change_data"
  * ABORT_VOLTAGE_CHANGE Regulator voltage change failed for some reason.
  *                      Data passed is old voltage cast to (void *).
+ * PRE_DISABLE    Regulator is about to be disabled
+ * ABORT_DISABLE  Regulator disable failed for some reason
  *
  * NOTE: These events can be OR'ed together when passed into handler.
  */
@@ -113,6 +117,8 @@ struct regmap;
 #define REGULATOR_EVENT_DISABLE                0x80
 #define REGULATOR_EVENT_PRE_VOLTAGE_CHANGE     0x100
 #define REGULATOR_EVENT_ABORT_VOLTAGE_CHANGE   0x200
+#define REGULATOR_EVENT_PRE_DISABLE            0x400
+#define REGULATOR_EVENT_ABORT_DISABLE          0x800
 
 /**
  * struct pre_voltage_change_data - Data sent with PRE_VOLTAGE_CHANGE event