summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRuss Dill <Russ.Dill@ti.com>2014-08-26 11:13:20 +0530
committerTero Kristo <t-kristo@ti.com>2014-09-01 10:55:09 +0300
commitbe65596d3283007e7c9a546557467b2ba1779050 (patch)
treec6d884c822330d2909eebb50435f42642c5cdd54 /include
parente6db0f2370592fe9fe681488d4488cb4dedf88a8 (diff)
MFD: Don't set TPS65217 STATUS_OFF until an actual power off event.
This allows the TPS to be used with RTC only suspend/resume, otherwise it powers off when attempting suspend. Signed-off-by: Russ Dill <Russ.Dill@ti.com> [j-keerthy@ti.com] ported to 3.14 with minor fixes Signed-off-by: Keerthy <j-keerthy@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/tps65217.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mfd/tps65217.h b/include/linux/mfd/tps65217.h
index 54b5458ec08..4c809137525 100644
--- a/include/linux/mfd/tps65217.h
+++ b/include/linux/mfd/tps65217.h
@@ -21,6 +21,7 @@
#include <linux/i2c.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
+#include <linux/notifier.h>
/* TPS chip id list */
#define TPS65217 0xF0
@@ -256,6 +257,9 @@ struct tps65217 {
struct regulator_desc desc[TPS65217_NUM_REGULATOR];
struct regulator_dev *rdev[TPS65217_NUM_REGULATOR];
struct regmap *regmap;
+
+ int write_status_off;
+ struct notifier_block reboot_notifier;
};
static inline struct tps65217 *dev_to_tps65217(struct device *dev)