Skip to content

Commit b3dfd5e

Browse files
committed
Revert "[fio extras] iMX7ULP: PMIC: BD70528 5.4-based changes"
This commit was a WIP test to compare voltages to the 4.19 EA kernel. It was left in-tree by accident and should be reverted as it causes a crash when RPMSG regulator is used. This reverts commit d05451f. Signed-off-by: Michael Scott <[email protected]>
1 parent ebe5ab0 commit b3dfd5e

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

drivers/regulator/pf1550-regulator-rpmsg.c

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,6 @@ static struct regulator_desc bd70528_regulators[BD70528_MAX_REGULATOR] = {
363363
.of_match = of_match_ptr("SW1"),
364364
.id = BD70528_SW1,
365365
.ops = &pf1550_sw_ops,
366-
.n_voltages = (3400000 - 1200000) / 100000 + 1,
367-
.min_uV = 1200000,
368-
.uV_step = 100000,
369366
.type = REGULATOR_VOLTAGE,
370367
.owner = THIS_MODULE,
371368
},
@@ -374,29 +371,22 @@ static struct regulator_desc bd70528_regulators[BD70528_MAX_REGULATOR] = {
374371
.of_match = of_match_ptr("SW2"),
375372
.id = BD70528_SW2,
376373
.ops = &pf1550_sw_ops,
377-
.n_voltages = (3300000 - 1200000) / 100000 + 1,
378-
.min_uV = 1200000,
379-
.uV_step = 100000,
380374
.type = REGULATOR_VOLTAGE,
381375
.owner = THIS_MODULE,
382376
},
383377
{
384378
.name = "SW3",
385379
.of_match = of_match_ptr("SW3"),
386380
.id = BD70528_SW3,
387-
.ops = &pf1550_fixed_ops,
381+
.ops = &pf1550_sw_ops,
388382
.type = REGULATOR_VOLTAGE,
389-
.fixed_uV = 1200000,
390383
.owner = THIS_MODULE,
391384
},
392385
{
393386
.name = "LDO1",
394387
.of_match = of_match_ptr("LDO1"),
395388
.id = BD70528_LDO1,
396389
.ops = &pf1550_ldo_ops,
397-
.n_voltages = (3300000 - 1650000) / 50000 + 1,
398-
.min_uV = 1650000,
399-
.uV_step = 50000,
400390
.type = REGULATOR_VOLTAGE,
401391
.owner = THIS_MODULE,
402392
},
@@ -405,9 +395,6 @@ static struct regulator_desc bd70528_regulators[BD70528_MAX_REGULATOR] = {
405395
.of_match = of_match_ptr("LDO2"),
406396
.id = BD70528_LDO2,
407397
.ops = &pf1550_ldo_ops,
408-
.n_voltages = (3300000 - 1650000) / 50000 + 1,
409-
.min_uV = 1650000,
410-
.uV_step = 50000,
411398
.type = REGULATOR_VOLTAGE,
412399
.owner = THIS_MODULE,
413400
},
@@ -416,9 +403,6 @@ static struct regulator_desc bd70528_regulators[BD70528_MAX_REGULATOR] = {
416403
.of_match = of_match_ptr("LDO3"),
417404
.id = BD70528_LDO3,
418405
.ops = &pf1550_ldo_ops,
419-
.n_voltages = (3300000 - 1650000) / 50000 + 1,
420-
.min_uV = 1650000,
421-
.uV_step = 50000,
422406
.type = REGULATOR_VOLTAGE,
423407
.owner = THIS_MODULE,
424408
},

0 commit comments

Comments
 (0)