Skip to content

Commit 1474e4d

Browse files
committed
Merge branch 'regulator-register' into regulator-drivers
2 parents f604c10 + 09de347 commit 1474e4d

16 files changed

Lines changed: 19 additions & 17 deletions

‎drivers/regulator/ad5398.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ static struct regulator_ops ad5398_ops = {
184184
.is_enabled = ad5398_is_enabled,
185185
};
186186

187-
static struct regulator_desc ad5398_reg = {
187+
static const struct regulator_desc ad5398_reg = {
188188
.name = "isink",
189189
.id = 0,
190190
.ops = &ad5398_ops,

‎drivers/regulator/core.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2829,7 +2829,8 @@ static void rdev_init_debugfs(struct regulator_dev *rdev)
28292829
* Called by regulator drivers to register a regulator.
28302830
* Returns 0 on success.
28312831
*/
2832-
struct regulator_dev *regulator_register(struct regulator_desc *regulator_desc,
2832+
struct regulator_dev *
2833+
regulator_register(const struct regulator_desc *regulator_desc,
28332834
struct device *dev, const struct regulator_init_data *init_data,
28342835
void *driver_data, struct device_node *of_node)
28352836
{

‎drivers/regulator/isl6271a-regulator.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static struct regulator_ops isl_fixed_ops = {
112112
.list_voltage = isl6271a_list_fixed_voltage,
113113
};
114114

115-
static struct regulator_desc isl_rd[] = {
115+
static const struct regulator_desc isl_rd[] = {
116116
{
117117
.name = "Core Buck",
118118
.id = 0,

‎drivers/regulator/lp3971.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ static struct regulator_ops lp3971_dcdc_ops = {
281281
.set_voltage_sel = lp3971_dcdc_set_voltage_sel,
282282
};
283283

284-
static struct regulator_desc regulators[] = {
284+
static const struct regulator_desc regulators[] = {
285285
{
286286
.name = "LDO1",
287287
.id = LP3971_LDO1,

‎drivers/regulator/lp3972.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ static struct regulator_ops lp3972_dcdc_ops = {
444444
.set_voltage_sel = lp3972_dcdc_set_voltage_sel,
445445
};
446446

447-
static struct regulator_desc regulators[] = {
447+
static const struct regulator_desc regulators[] = {
448448
{
449449
.name = "LDO1",
450450
.id = LP3972_LDO1,

‎drivers/regulator/max1586.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static struct regulator_ops max1586_v6_ops = {
161161
.list_voltage = max1586_v6_list,
162162
};
163163

164-
static struct regulator_desc max1586_reg[] = {
164+
static const struct regulator_desc max1586_reg[] = {
165165
{
166166
.name = "Output_V3",
167167
.id = MAX1586_V3,

‎drivers/regulator/max8649.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static struct regulator_ops max8649_dcdc_ops = {
207207

208208
};
209209

210-
static struct regulator_desc dcdc_desc = {
210+
static const struct regulator_desc dcdc_desc = {
211211
.name = "max8649",
212212
.ops = &max8649_dcdc_ops,
213213
.type = REGULATOR_VOLTAGE,

‎drivers/regulator/max8660.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ static struct regulator_ops max8660_ldo67_ops = {
313313
.set_voltage = max8660_ldo67_set,
314314
};
315315

316-
static struct regulator_desc max8660_reg[] = {
316+
static const struct regulator_desc max8660_reg[] = {
317317
{
318318
.name = "V3(DCDC)",
319319
.id = MAX8660_V3,

‎drivers/regulator/max8952.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static struct regulator_ops max8952_ops = {
159159
.set_suspend_disable = max8952_disable,
160160
};
161161

162-
static struct regulator_desc regulator = {
162+
static const struct regulator_desc regulator = {
163163
.name = "MAX8952_VOUT",
164164
.id = 0,
165165
.n_voltages = MAX8952_NUM_DVS_MODE,

‎drivers/regulator/pcap-regulator.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ static struct regulator_ops pcap_regulator_ops = {
241241
.owner = THIS_MODULE, \
242242
}
243243

244-
static struct regulator_desc pcap_regulators[] = {
244+
static const struct regulator_desc pcap_regulators[] = {
245245
VREG(V1), VREG(V2), VREG(V3), VREG(V4), VREG(V5), VREG(V6), VREG(V7),
246246
VREG(V8), VREG(V9), VREG(V10), VREG(VAUX1), VREG(VAUX2), VREG(VAUX3),
247247
VREG(VAUX4), VREG(VSIM), VREG(VSIM2), VREG(VVIB), VREG(SW1), VREG(SW2),

0 commit comments

Comments
 (0)