diff options
| author | Chao Xie <chao.xie@marvell.com> | 2013-06-14 01:21:53 -0400 |
|---|---|---|
| committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-06-18 03:41:12 -0400 |
| commit | 2d3aa0569cc111b7567cb082c2f8ab32e2245e49 (patch) | |
| tree | 92be0b9a5383702098f62d831738fa588a0c6065 /include/linux/mfd | |
| parent | 3a3ece5415bd7a4bc7923906369525943332fc1a (diff) | |
mfd: 88pm800: Add regulator sub device
Signed-off-by: Chao Xie <chao.xie@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/88pm80x.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mfd/88pm80x.h b/include/linux/mfd/88pm80x.h index 4a66a5633031..97cb283cc8e1 100644 --- a/include/linux/mfd/88pm80x.h +++ b/include/linux/mfd/88pm80x.h | |||
| @@ -307,6 +307,14 @@ struct pm80x_chip { | |||
| 307 | 307 | ||
| 308 | struct pm80x_platform_data { | 308 | struct pm80x_platform_data { |
| 309 | struct pm80x_rtc_pdata *rtc; | 309 | struct pm80x_rtc_pdata *rtc; |
| 310 | /* | ||
| 311 | * For the regulator not defined, set regulators[not_defined] to be | ||
| 312 | * NULL. num_regulators are the number of regulators supposed to be | ||
| 313 | * initialized. If all regulators are not defined, set num_regulators | ||
| 314 | * to be 0. | ||
| 315 | */ | ||
| 316 | struct regulator_init_data *regulators[PM800_ID_RG_MAX]; | ||
| 317 | unsigned int num_regulators; | ||
| 310 | int irq_mode; /* Clear interrupt by read/write(0/1) */ | 318 | int irq_mode; /* Clear interrupt by read/write(0/1) */ |
| 311 | int batt_det; /* enable/disable */ | 319 | int batt_det; /* enable/disable */ |
| 312 | int (*plat_config)(struct pm80x_chip *chip, | 320 | int (*plat_config)(struct pm80x_chip *chip, |
