diff options
author | Haojian Zhuang <haojian.zhuang@gmail.com> | 2012-08-08 11:17:28 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-09-11 05:38:17 -0400 |
commit | a70abacb06b884131ec181551a71ef325490f374 (patch) | |
tree | 4372f7751588d3b47a56571e36edfcf9a0fde0a8 /include/linux/mfd/88pm860x.h | |
parent | 894fc8f2c295373e6c73943d8bc2023cc49b9bb0 (diff) |
mfd: 88pm860x: Use REG resource in regulator
Since IORESOURCE_IO is changed to IORESOURCE_REG in 88pm860x driver,
update self-defined IORESOURCE_IO resource to register offset that
is IORESOURCE_REG in regulator driver. And split regulator platform
data array into scattered platform data.
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd/88pm860x.h')
-rw-r--r-- | include/linux/mfd/88pm860x.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/include/linux/mfd/88pm860x.h b/include/linux/mfd/88pm860x.h index 2d042f972c68..87c933d1b912 100644 --- a/include/linux/mfd/88pm860x.h +++ b/include/linux/mfd/88pm860x.h | |||
@@ -359,7 +359,22 @@ struct pm860x_platform_data { | |||
359 | struct pm860x_rtc_pdata *rtc; | 359 | struct pm860x_rtc_pdata *rtc; |
360 | struct pm860x_touch_pdata *touch; | 360 | struct pm860x_touch_pdata *touch; |
361 | struct pm860x_power_pdata *power; | 361 | struct pm860x_power_pdata *power; |
362 | struct regulator_init_data *regulator; | 362 | struct regulator_init_data *buck1; |
363 | struct regulator_init_data *buck2; | ||
364 | struct regulator_init_data *buck3; | ||
365 | struct regulator_init_data *ldo1; | ||
366 | struct regulator_init_data *ldo2; | ||
367 | struct regulator_init_data *ldo3; | ||
368 | struct regulator_init_data *ldo4; | ||
369 | struct regulator_init_data *ldo5; | ||
370 | struct regulator_init_data *ldo6; | ||
371 | struct regulator_init_data *ldo7; | ||
372 | struct regulator_init_data *ldo8; | ||
373 | struct regulator_init_data *ldo9; | ||
374 | struct regulator_init_data *ldo10; | ||
375 | struct regulator_init_data *ldo12; | ||
376 | struct regulator_init_data *ldo_vibrator; | ||
377 | struct regulator_init_data *ldo14; | ||
363 | 378 | ||
364 | unsigned short companion_addr; /* I2C address of companion chip */ | 379 | unsigned short companion_addr; /* I2C address of companion chip */ |
365 | int i2c_port; /* Controlled by GI2C or PI2C */ | 380 | int i2c_port; /* Controlled by GI2C or PI2C */ |
@@ -367,7 +382,6 @@ struct pm860x_platform_data { | |||
367 | int irq_base; /* IRQ base number of 88pm860x */ | 382 | int irq_base; /* IRQ base number of 88pm860x */ |
368 | int num_leds; | 383 | int num_leds; |
369 | int num_backlights; | 384 | int num_backlights; |
370 | int num_regulators; | ||
371 | }; | 385 | }; |
372 | 386 | ||
373 | extern int pm8606_osc_enable(struct pm860x_chip *, unsigned short); | 387 | extern int pm8606_osc_enable(struct pm860x_chip *, unsigned short); |