Skip to content

Commit 99765cc

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6: regulator: return set_mode is same mode is requested Regulators: ab3100/bq24022: add a missing .owner field in regulator_desc twl6030: regulator: Remove vsel tables and use formula for calculation mc13783-regulator: fix vaild voltage range checking for mc13783_fixed_regulator_set_voltage regulator: use voltage number array in 88pm860x regulator: make 88pm860x sharing one driver structure regulator: simplify regulator_register() error handling regulator: fix unset_regulator_supplies() to remove all matches regulator: prevent registration of matching regulator consumer supplies regulator: Allow regulator-regulator supplies to be specified by name
2 parents 51e618c + 500b4ac commit 99765cc

File tree

9 files changed

+414
-405
lines changed

9 files changed

+414
-405
lines changed

drivers/mfd/88pm860x-core.c

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -173,33 +173,35 @@ static struct resource regulator_resources[] = {
173173
PM8607_REG_RESOURCE(LDO9, LDO9),
174174
PM8607_REG_RESOURCE(LDO10, LDO10),
175175
PM8607_REG_RESOURCE(LDO12, LDO12),
176+
PM8607_REG_RESOURCE(VIBRATOR_SET, VIBRATOR_SET),
176177
PM8607_REG_RESOURCE(LDO14, LDO14),
177178
};
178179

179-
#define PM8607_REG_DEVS(_name, _id) \
180+
#define PM8607_REG_DEVS(_id) \
180181
{ \
181-
.name = "88pm8607-" #_name, \
182+
.name = "88pm860x-regulator", \
182183
.num_resources = 1, \
183184
.resources = &regulator_resources[PM8607_ID_##_id], \
184185
.id = PM8607_ID_##_id, \
185186
}
186187

187188
static struct mfd_cell regulator_devs[] = {
188-
PM8607_REG_DEVS(buck1, BUCK1),
189-
PM8607_REG_DEVS(buck2, BUCK2),
190-
PM8607_REG_DEVS(buck3, BUCK3),
191-
PM8607_REG_DEVS(ldo1, LDO1),
192-
PM8607_REG_DEVS(ldo2, LDO2),
193-
PM8607_REG_DEVS(ldo3, LDO3),
194-
PM8607_REG_DEVS(ldo4, LDO4),
195-
PM8607_REG_DEVS(ldo5, LDO5),
196-
PM8607_REG_DEVS(ldo6, LDO6),
197-
PM8607_REG_DEVS(ldo7, LDO7),
198-
PM8607_REG_DEVS(ldo8, LDO8),
199-
PM8607_REG_DEVS(ldo9, LDO9),
200-
PM8607_REG_DEVS(ldo10, LDO10),
201-
PM8607_REG_DEVS(ldo12, LDO12),
202-
PM8607_REG_DEVS(ldo14, LDO14),
189+
PM8607_REG_DEVS(BUCK1),
190+
PM8607_REG_DEVS(BUCK2),
191+
PM8607_REG_DEVS(BUCK3),
192+
PM8607_REG_DEVS(LDO1),
193+
PM8607_REG_DEVS(LDO2),
194+
PM8607_REG_DEVS(LDO3),
195+
PM8607_REG_DEVS(LDO4),
196+
PM8607_REG_DEVS(LDO5),
197+
PM8607_REG_DEVS(LDO6),
198+
PM8607_REG_DEVS(LDO7),
199+
PM8607_REG_DEVS(LDO8),
200+
PM8607_REG_DEVS(LDO9),
201+
PM8607_REG_DEVS(LDO10),
202+
PM8607_REG_DEVS(LDO12),
203+
PM8607_REG_DEVS(LDO13),
204+
PM8607_REG_DEVS(LDO14),
203205
};
204206

205207
struct pm860x_irq_data {

0 commit comments

Comments
 (0)