regulator: Replace regulator_desc_[ldo|buck] by s5m8767_regulator_desc macro
Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Sangbeom Kim <sbkim73@samsung.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
d35aad0cad
commit
65896e7362
|
@ -465,59 +465,52 @@ static struct regulator_ops s5m8767_ops = {
|
||||||
.set_voltage_time_sel = s5m8767_set_voltage_time_sel,
|
.set_voltage_time_sel = s5m8767_set_voltage_time_sel,
|
||||||
};
|
};
|
||||||
|
|
||||||
#define regulator_desc_ldo(num) { \
|
#define s5m8767_regulator_desc(_name) { \
|
||||||
.name = "LDO"#num, \
|
.name = #_name, \
|
||||||
.id = S5M8767_LDO##num, \
|
.id = S5M8767_##_name, \
|
||||||
.ops = &s5m8767_ops, \
|
.ops = &s5m8767_ops, \
|
||||||
.type = REGULATOR_VOLTAGE, \
|
|
||||||
.owner = THIS_MODULE, \
|
|
||||||
}
|
|
||||||
#define regulator_desc_buck(num) { \
|
|
||||||
.name = "BUCK"#num, \
|
|
||||||
.id = S5M8767_BUCK##num, \
|
|
||||||
.ops = &s5m8767_ops, \
|
|
||||||
.type = REGULATOR_VOLTAGE, \
|
.type = REGULATOR_VOLTAGE, \
|
||||||
.owner = THIS_MODULE, \
|
.owner = THIS_MODULE, \
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct regulator_desc regulators[] = {
|
static struct regulator_desc regulators[] = {
|
||||||
regulator_desc_ldo(1),
|
s5m8767_regulator_desc(LDO1),
|
||||||
regulator_desc_ldo(2),
|
s5m8767_regulator_desc(LDO2),
|
||||||
regulator_desc_ldo(3),
|
s5m8767_regulator_desc(LDO3),
|
||||||
regulator_desc_ldo(4),
|
s5m8767_regulator_desc(LDO4),
|
||||||
regulator_desc_ldo(5),
|
s5m8767_regulator_desc(LDO5),
|
||||||
regulator_desc_ldo(6),
|
s5m8767_regulator_desc(LDO6),
|
||||||
regulator_desc_ldo(7),
|
s5m8767_regulator_desc(LDO7),
|
||||||
regulator_desc_ldo(8),
|
s5m8767_regulator_desc(LDO8),
|
||||||
regulator_desc_ldo(9),
|
s5m8767_regulator_desc(LDO9),
|
||||||
regulator_desc_ldo(10),
|
s5m8767_regulator_desc(LDO10),
|
||||||
regulator_desc_ldo(11),
|
s5m8767_regulator_desc(LDO11),
|
||||||
regulator_desc_ldo(12),
|
s5m8767_regulator_desc(LDO12),
|
||||||
regulator_desc_ldo(13),
|
s5m8767_regulator_desc(LDO13),
|
||||||
regulator_desc_ldo(14),
|
s5m8767_regulator_desc(LDO14),
|
||||||
regulator_desc_ldo(15),
|
s5m8767_regulator_desc(LDO15),
|
||||||
regulator_desc_ldo(16),
|
s5m8767_regulator_desc(LDO16),
|
||||||
regulator_desc_ldo(17),
|
s5m8767_regulator_desc(LDO17),
|
||||||
regulator_desc_ldo(18),
|
s5m8767_regulator_desc(LDO18),
|
||||||
regulator_desc_ldo(19),
|
s5m8767_regulator_desc(LDO19),
|
||||||
regulator_desc_ldo(20),
|
s5m8767_regulator_desc(LDO20),
|
||||||
regulator_desc_ldo(21),
|
s5m8767_regulator_desc(LDO21),
|
||||||
regulator_desc_ldo(22),
|
s5m8767_regulator_desc(LDO22),
|
||||||
regulator_desc_ldo(23),
|
s5m8767_regulator_desc(LDO23),
|
||||||
regulator_desc_ldo(24),
|
s5m8767_regulator_desc(LDO24),
|
||||||
regulator_desc_ldo(25),
|
s5m8767_regulator_desc(LDO25),
|
||||||
regulator_desc_ldo(26),
|
s5m8767_regulator_desc(LDO26),
|
||||||
regulator_desc_ldo(27),
|
s5m8767_regulator_desc(LDO27),
|
||||||
regulator_desc_ldo(28),
|
s5m8767_regulator_desc(LDO28),
|
||||||
regulator_desc_buck(1),
|
s5m8767_regulator_desc(BUCK1),
|
||||||
regulator_desc_buck(2),
|
s5m8767_regulator_desc(BUCK2),
|
||||||
regulator_desc_buck(3),
|
s5m8767_regulator_desc(BUCK3),
|
||||||
regulator_desc_buck(4),
|
s5m8767_regulator_desc(BUCK4),
|
||||||
regulator_desc_buck(5),
|
s5m8767_regulator_desc(BUCK5),
|
||||||
regulator_desc_buck(6),
|
s5m8767_regulator_desc(BUCK6),
|
||||||
regulator_desc_buck(7),
|
s5m8767_regulator_desc(BUCK7),
|
||||||
regulator_desc_buck(8),
|
s5m8767_regulator_desc(BUCK8),
|
||||||
regulator_desc_buck(9),
|
s5m8767_regulator_desc(BUCK9),
|
||||||
};
|
};
|
||||||
|
|
||||||
static __devinit int s5m8767_pmic_probe(struct platform_device *pdev)
|
static __devinit int s5m8767_pmic_probe(struct platform_device *pdev)
|
||||||
|
|
Loading…
Reference in a new issue