diff options
author | Graeme Gregory <gg@slimlogic.co.uk> | 2012-08-28 07:47:39 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-09-23 14:51:29 -0400 |
commit | 7cc4c92fbc1b539597c00656b3236a57d76022f4 (patch) | |
tree | d782a9bc042a6754edf9aa6cd4154d2e2bd80693 /include/linux/mfd | |
parent | 9c14ac33450eaa3347d0d202c2a4116578976a63 (diff) |
mfd: palmas: Change regulator defns to better suite DT
In order to better fit DT parsing in of regulator definitions re-arrange
the platform data struct slightly which requires the definitions of
the regulator IDs earlier in the include file.
Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/palmas.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h index cfbf79464c19..29f6616e12f0 100644 --- a/include/linux/mfd/palmas.h +++ b/include/linux/mfd/palmas.h | |||
@@ -130,16 +130,44 @@ struct palmas_reg_init { | |||
130 | 130 | ||
131 | }; | 131 | }; |
132 | 132 | ||
133 | enum palmas_regulators { | ||
134 | /* SMPS regulators */ | ||
135 | PALMAS_REG_SMPS12, | ||
136 | PALMAS_REG_SMPS123, | ||
137 | PALMAS_REG_SMPS3, | ||
138 | PALMAS_REG_SMPS45, | ||
139 | PALMAS_REG_SMPS457, | ||
140 | PALMAS_REG_SMPS6, | ||
141 | PALMAS_REG_SMPS7, | ||
142 | PALMAS_REG_SMPS8, | ||
143 | PALMAS_REG_SMPS9, | ||
144 | PALMAS_REG_SMPS10, | ||
145 | /* LDO regulators */ | ||
146 | PALMAS_REG_LDO1, | ||
147 | PALMAS_REG_LDO2, | ||
148 | PALMAS_REG_LDO3, | ||
149 | PALMAS_REG_LDO4, | ||
150 | PALMAS_REG_LDO5, | ||
151 | PALMAS_REG_LDO6, | ||
152 | PALMAS_REG_LDO7, | ||
153 | PALMAS_REG_LDO8, | ||
154 | PALMAS_REG_LDO9, | ||
155 | PALMAS_REG_LDOLN, | ||
156 | PALMAS_REG_LDOUSB, | ||
157 | /* Total number of regulators */ | ||
158 | PALMAS_NUM_REGS, | ||
159 | }; | ||
160 | |||
133 | struct palmas_pmic_platform_data { | 161 | struct palmas_pmic_platform_data { |
134 | /* An array of pointers to regulator init data indexed by regulator | 162 | /* An array of pointers to regulator init data indexed by regulator |
135 | * ID | 163 | * ID |
136 | */ | 164 | */ |
137 | struct regulator_init_data **reg_data; | 165 | struct regulator_init_data *reg_data[PALMAS_NUM_REGS]; |
138 | 166 | ||
139 | /* An array of pointers to structures containing sleep mode and DVS | 167 | /* An array of pointers to structures containing sleep mode and DVS |
140 | * configuration for regulators indexed by ID | 168 | * configuration for regulators indexed by ID |
141 | */ | 169 | */ |
142 | struct palmas_reg_init **reg_init; | 170 | struct palmas_reg_init *reg_init[PALMAS_NUM_REGS]; |
143 | 171 | ||
144 | /* use LDO6 for vibrator control */ | 172 | /* use LDO6 for vibrator control */ |
145 | int ldo6_vibrator; | 173 | int ldo6_vibrator; |
@@ -291,34 +319,6 @@ enum palmas_irqs { | |||
291 | PALMAS_NUM_IRQ, | 319 | PALMAS_NUM_IRQ, |
292 | }; | 320 | }; |
293 | 321 | ||
294 | enum palmas_regulators { | ||
295 | /* SMPS regulators */ | ||
296 | PALMAS_REG_SMPS12, | ||
297 | PALMAS_REG_SMPS123, | ||
298 | PALMAS_REG_SMPS3, | ||
299 | PALMAS_REG_SMPS45, | ||
300 | PALMAS_REG_SMPS457, | ||
301 | PALMAS_REG_SMPS6, | ||
302 | PALMAS_REG_SMPS7, | ||
303 | PALMAS_REG_SMPS8, | ||
304 | PALMAS_REG_SMPS9, | ||
305 | PALMAS_REG_SMPS10, | ||
306 | /* LDO regulators */ | ||
307 | PALMAS_REG_LDO1, | ||
308 | PALMAS_REG_LDO2, | ||
309 | PALMAS_REG_LDO3, | ||
310 | PALMAS_REG_LDO4, | ||
311 | PALMAS_REG_LDO5, | ||
312 | PALMAS_REG_LDO6, | ||
313 | PALMAS_REG_LDO7, | ||
314 | PALMAS_REG_LDO8, | ||
315 | PALMAS_REG_LDO9, | ||
316 | PALMAS_REG_LDOLN, | ||
317 | PALMAS_REG_LDOUSB, | ||
318 | /* Total number of regulators */ | ||
319 | PALMAS_NUM_REGS, | ||
320 | }; | ||
321 | |||
322 | struct palmas_pmic { | 322 | struct palmas_pmic { |
323 | struct palmas *palmas; | 323 | struct palmas *palmas; |
324 | struct device *dev; | 324 | struct device *dev; |