diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-01-14 13:26:15 +0000 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2013-02-04 08:28:41 +0000 |
commit | 379749c46320c82df95c7909ec888da8ed1fb22c (patch) | |
tree | 5d57a71f4bdf660a20f23b02b7bfa9f9361b9d2f /include | |
parent | 949db153b6466c6f7cad5a427ecea94985927311 (diff) | |
download | linux-stable-379749c46320c82df95c7909ec888da8ed1fb22c.tar.gz linux-stable-379749c46320c82df95c7909ec888da8ed1fb22c.tar.bz2 linux-stable-379749c46320c82df95c7909ec888da8ed1fb22c.zip |
mfd: ab8500-sysctrl: Provide a platform specific pm_power_off() call-back
The kernel allows us to specify a function call-back which will be
invoked when a system power-off request has been received. Here we
provide one which is to be used when shutting down AB8500 based
platforms.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/abx500/ab8500.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/abx500/ab8500.h b/include/linux/mfd/abx500/ab8500.h index 1cb5698b4d76..6119b2fbad97 100644 --- a/include/linux/mfd/abx500/ab8500.h +++ b/include/linux/mfd/abx500/ab8500.h @@ -274,6 +274,7 @@ struct ab8500_codec_platform_data; /** * struct ab8500_platform_data - AB8500 platform data * @irq_base: start of AB8500 IRQs, AB8500_NR_IRQS will be used + * @pm_power_off: Should machine pm power off hook be registered or not * @init: board-specific initialization after detection of ab8500 * @num_regulator_reg_init: number of regulator init registers * @regulator_reg_init: regulator init registers @@ -282,6 +283,7 @@ struct ab8500_codec_platform_data; */ struct ab8500_platform_data { int irq_base; + bool pm_power_off; void (*init) (struct ab8500 *); int num_regulator_reg_init; struct ab8500_regulator_reg_init *regulator_reg_init; |