diff options
author | Haojian Zhuang <haojian.zhuang@marvell.com> | 2010-04-29 13:33:50 -0400 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2010-05-25 05:16:02 -0400 |
commit | 192bbb95ca16f2b4d4383e76b3262672e6116daa (patch) | |
tree | 1e090809827018c4a7d4f9dfcd6a97e3ab08c106 /drivers/mfd | |
parent | d4033b54fc91221b13e2850bf298683c0f2ff37d (diff) |
regulator: make 88pm860x sharing one driver structure
Remove a lot of driver structures in 88pm860x driver. Make regulators share
one driver structure.
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/88pm860x-core.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/mfd/88pm860x-core.c b/drivers/mfd/88pm860x-core.c index 6a14d2b1ccf0..21de38daf948 100644 --- a/drivers/mfd/88pm860x-core.c +++ b/drivers/mfd/88pm860x-core.c | |||
@@ -176,30 +176,30 @@ static struct resource regulator_resources[] = { | |||
176 | PM8607_REG_RESOURCE(LDO14, LDO14), | 176 | PM8607_REG_RESOURCE(LDO14, LDO14), |
177 | }; | 177 | }; |
178 | 178 | ||
179 | #define PM8607_REG_DEVS(_name, _id) \ | 179 | #define PM8607_REG_DEVS(_id) \ |
180 | { \ | 180 | { \ |
181 | .name = "88pm8607-" #_name, \ | 181 | .name = "88pm860x-regulator", \ |
182 | .num_resources = 1, \ | 182 | .num_resources = 1, \ |
183 | .resources = ®ulator_resources[PM8607_ID_##_id], \ | 183 | .resources = ®ulator_resources[PM8607_ID_##_id], \ |
184 | .id = PM8607_ID_##_id, \ | 184 | .id = PM8607_ID_##_id, \ |
185 | } | 185 | } |
186 | 186 | ||
187 | static struct mfd_cell regulator_devs[] = { | 187 | static struct mfd_cell regulator_devs[] = { |
188 | PM8607_REG_DEVS(buck1, BUCK1), | 188 | PM8607_REG_DEVS(BUCK1), |
189 | PM8607_REG_DEVS(buck2, BUCK2), | 189 | PM8607_REG_DEVS(BUCK2), |
190 | PM8607_REG_DEVS(buck3, BUCK3), | 190 | PM8607_REG_DEVS(BUCK3), |
191 | PM8607_REG_DEVS(ldo1, LDO1), | 191 | PM8607_REG_DEVS(LDO1), |
192 | PM8607_REG_DEVS(ldo2, LDO2), | 192 | PM8607_REG_DEVS(LDO2), |
193 | PM8607_REG_DEVS(ldo3, LDO3), | 193 | PM8607_REG_DEVS(LDO3), |
194 | PM8607_REG_DEVS(ldo4, LDO4), | 194 | PM8607_REG_DEVS(LDO4), |
195 | PM8607_REG_DEVS(ldo5, LDO5), | 195 | PM8607_REG_DEVS(LDO5), |
196 | PM8607_REG_DEVS(ldo6, LDO6), | 196 | PM8607_REG_DEVS(LDO6), |
197 | PM8607_REG_DEVS(ldo7, LDO7), | 197 | PM8607_REG_DEVS(LDO7), |
198 | PM8607_REG_DEVS(ldo8, LDO8), | 198 | PM8607_REG_DEVS(LDO8), |
199 | PM8607_REG_DEVS(ldo9, LDO9), | 199 | PM8607_REG_DEVS(LDO9), |
200 | PM8607_REG_DEVS(ldo10, LDO10), | 200 | PM8607_REG_DEVS(LDO10), |
201 | PM8607_REG_DEVS(ldo12, LDO12), | 201 | PM8607_REG_DEVS(LDO12), |
202 | PM8607_REG_DEVS(ldo14, LDO14), | 202 | PM8607_REG_DEVS(LDO14), |
203 | }; | 203 | }; |
204 | 204 | ||
205 | struct pm860x_irq_data { | 205 | struct pm860x_irq_data { |