diff options
| author | Lee Jones <lee.jones@linaro.org> | 2013-04-02 08:24:19 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-03 13:40:28 -0400 |
| commit | c4e67bbc99ce661808c3ee77b0bb5779d0df11ca (patch) | |
| tree | 8599d70a0ea8f22352ff928074c49133919d26d0 /include/linux/mfd/abx500 | |
| parent | d319310395bdaf3d99fdd221d7adcdb7270fb3cc (diff) | |
ARM: ux500: Pass regulator platform data using the new format
Regulator platform data is now passed though a single structure
as opposed to the old way where four separate struct elements
were required. This patch makes use of the new format.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/mfd/abx500')
| -rw-r--r-- | include/linux/mfd/abx500/ab8500.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/include/linux/mfd/abx500/ab8500.h b/include/linux/mfd/abx500/ab8500.h index 9db0bda446a0..84f449475c25 100644 --- a/include/linux/mfd/abx500/ab8500.h +++ b/include/linux/mfd/abx500/ab8500.h | |||
| @@ -364,8 +364,7 @@ struct ab8500 { | |||
| 364 | const int *irq_reg_offset; | 364 | const int *irq_reg_offset; |
| 365 | }; | 365 | }; |
| 366 | 366 | ||
| 367 | struct regulator_reg_init; | 367 | struct ab8500_regulator_platform_data; |
| 368 | struct regulator_init_data; | ||
| 369 | struct ab8500_gpio_platform_data; | 368 | struct ab8500_gpio_platform_data; |
| 370 | struct ab8500_codec_platform_data; | 369 | struct ab8500_codec_platform_data; |
| 371 | struct ab8500_sysctrl_platform_data; | 370 | struct ab8500_sysctrl_platform_data; |
| @@ -375,19 +374,13 @@ struct ab8500_sysctrl_platform_data; | |||
| 375 | * @irq_base: start of AB8500 IRQs, AB8500_NR_IRQS will be used | 374 | * @irq_base: start of AB8500 IRQs, AB8500_NR_IRQS will be used |
| 376 | * @pm_power_off: Should machine pm power off hook be registered or not | 375 | * @pm_power_off: Should machine pm power off hook be registered or not |
| 377 | * @init: board-specific initialization after detection of ab8500 | 376 | * @init: board-specific initialization after detection of ab8500 |
| 378 | * @num_regulator_reg_init: number of regulator init registers | ||
| 379 | * @regulator_reg_init: regulator init registers | ||
| 380 | * @num_regulator: number of regulators | ||
| 381 | * @regulator: machine-specific constraints for regulators | 377 | * @regulator: machine-specific constraints for regulators |
| 382 | */ | 378 | */ |
| 383 | struct ab8500_platform_data { | 379 | struct ab8500_platform_data { |
| 384 | int irq_base; | 380 | int irq_base; |
| 385 | bool pm_power_off; | 381 | bool pm_power_off; |
| 386 | void (*init) (struct ab8500 *); | 382 | void (*init) (struct ab8500 *); |
| 387 | int num_regulator_reg_init; | 383 | struct ab8500_regulator_platform_data *regulator; |
| 388 | struct ab8500_regulator_reg_init *regulator_reg_init; | ||
| 389 | int num_regulator; | ||
| 390 | struct regulator_init_data *regulator; | ||
| 391 | struct abx500_gpio_platform_data *gpio; | 384 | struct abx500_gpio_platform_data *gpio; |
| 392 | struct ab8500_codec_platform_data *codec; | 385 | struct ab8500_codec_platform_data *codec; |
| 393 | struct ab8500_sysctrl_platform_data *sysctrl; | 386 | struct ab8500_sysctrl_platform_data *sysctrl; |
