diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-01-14 08:26:15 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2013-02-04 03:28:41 -0500 |
commit | 379749c46320c82df95c7909ec888da8ed1fb22c (patch) | |
tree | 5d57a71f4bdf660a20f23b02b7bfa9f9361b9d2f /include | |
parent | 949db153b6466c6f7cad5a427ecea94985927311 (diff) |
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; | |||
274 | /** | 274 | /** |
275 | * struct ab8500_platform_data - AB8500 platform data | 275 | * struct ab8500_platform_data - AB8500 platform data |
276 | * @irq_base: start of AB8500 IRQs, AB8500_NR_IRQS will be used | 276 | * @irq_base: start of AB8500 IRQs, AB8500_NR_IRQS will be used |
277 | * @pm_power_off: Should machine pm power off hook be registered or not | ||
277 | * @init: board-specific initialization after detection of ab8500 | 278 | * @init: board-specific initialization after detection of ab8500 |
278 | * @num_regulator_reg_init: number of regulator init registers | 279 | * @num_regulator_reg_init: number of regulator init registers |
279 | * @regulator_reg_init: regulator init registers | 280 | * @regulator_reg_init: regulator init registers |
@@ -282,6 +283,7 @@ struct ab8500_codec_platform_data; | |||
282 | */ | 283 | */ |
283 | struct ab8500_platform_data { | 284 | struct ab8500_platform_data { |
284 | int irq_base; | 285 | int irq_base; |
286 | bool pm_power_off; | ||
285 | void (*init) (struct ab8500 *); | 287 | void (*init) (struct ab8500 *); |
286 | int num_regulator_reg_init; | 288 | int num_regulator_reg_init; |
287 | struct ab8500_regulator_reg_init *regulator_reg_init; | 289 | struct ab8500_regulator_reg_init *regulator_reg_init; |