diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2011-12-01 15:13:54 -0800 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-02-15 16:56:33 -0800 |
commit | 88b5905d67d7ba03e98008fdcb4bf7874bcade18 (patch) | |
tree | e8efc9182211641d85002202565403602132d511 /include | |
parent | 8e9c3586d309db31fea2826f7d7f929bc715e3e7 (diff) |
mfd: tps6586x: Natively register pm_power_off
Instead of forcing the board files to register this themselves, just add
a bool to the platform data to let the board files opt into this.
Change-Id: I831c93026f8343d9962e174a3591e6832c5219d8
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83598
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/tps6586x.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mfd/tps6586x.h b/include/linux/mfd/tps6586x.h index e43184a43201..702cee59cc7b 100644 --- a/include/linux/mfd/tps6586x.h +++ b/include/linux/mfd/tps6586x.h @@ -112,6 +112,8 @@ struct tps6586x_platform_data { int gpio_base; int irq_base; + + bool use_power_off; }; /* @@ -126,6 +128,5 @@ extern int tps6586x_set_bits(struct device *dev, int reg, uint8_t bit_mask); extern int tps6586x_clr_bits(struct device *dev, int reg, uint8_t bit_mask); extern int tps6586x_update(struct device *dev, int reg, uint8_t val, uint8_t mask); -extern int tps6586x_power_off(void); #endif /*__LINUX_MFD_TPS6586X_H */ |