Skip to content

Commit c4e67bb

Browse files
Lee Jonesbroonie
authored andcommitted
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>
1 parent d319310 commit c4e67bb

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

‎arch/arm/mach-ux500/board-mop500.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,7 @@ static struct platform_device snowball_sbnet_dev = {
198198

199199
struct ab8500_platform_data ab8500_platdata = {
200200
.irq_base = MOP500_AB8500_IRQ_BASE,
201-
.regulator_reg_init = ab8500_regulator_reg_init,
202-
.num_regulator_reg_init = ARRAY_SIZE(ab8500_regulator_reg_init),
203-
.regulator = ab8500_regulators,
204-
.num_regulator = ARRAY_SIZE(ab8500_regulators),
201+
.regulator = &ab8500_regulator_plat_data,
205202
.gpio = &ab8500_gpio_pdata,
206203
.codec = &ab8500_codec_pdata,
207204
};

‎include/linux/mfd/abx500/ab8500.h‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,7 @@ struct ab8500 {
364364
const int *irq_reg_offset;
365365
};
366366

367-
struct regulator_reg_init;
368-
struct regulator_init_data;
367+
struct ab8500_regulator_platform_data;
369368
struct ab8500_gpio_platform_data;
370369
struct ab8500_codec_platform_data;
371370
struct ab8500_sysctrl_platform_data;
@@ -375,19 +374,13 @@ struct ab8500_sysctrl_platform_data;
375374
* @irq_base: start of AB8500 IRQs, AB8500_NR_IRQS will be used
376375
* @pm_power_off: Should machine pm power off hook be registered or not
377376
* @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
381377
* @regulator: machine-specific constraints for regulators
382378
*/
383379
struct ab8500_platform_data {
384380
int irq_base;
385381
bool pm_power_off;
386382
void (*init) (struct ab8500 *);
387-
int num_regulator_reg_init;
388-
struct ab8500_regulator_reg_init *regulator_reg_init;
389-
int num_regulator;
390-
struct regulator_init_data *regulator;
383+
struct ab8500_regulator_platform_data *regulator;
391384
struct abx500_gpio_platform_data *gpio;
392385
struct ab8500_codec_platform_data *codec;
393386
struct ab8500_sysctrl_platform_data *sysctrl;

0 commit comments

Comments
 (0)