Skip to content

Commit 3a6d93e

Browse files
Chen Jiahaobroonie
authored andcommitted
regulator: da9121-regulator: Remove redundant of_match_ptr() macros
Since the driver da9121-regulator depends on CONFIG_OF, it makes no difference to wrap of_match_ptr() here. Remove of_match_ptr() macros to clean it up. Signed-off-by: Chen Jiahao <chenjiahao16@huawei.com> Link: https://lore.kernel.org/r/20230809100428.2669817-2-chenjiahao16@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent f321708 commit 3a6d93e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

drivers/regulator/da9121-regulator.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ static const struct regulator_desc da9121_reg = {
440440
.of_match = "buck1",
441441
.of_parse_cb = da9121_of_parse_cb,
442442
.owner = THIS_MODULE,
443-
.regulators_node = of_match_ptr("regulators"),
443+
.regulators_node = "regulators",
444444
.of_map_mode = da9121_map_mode,
445445
.ops = &da9121_buck_ops,
446446
.type = REGULATOR_VOLTAGE,
@@ -465,7 +465,7 @@ static const struct regulator_desc da9220_reg[2] = {
465465
.of_match = "buck1",
466466
.of_parse_cb = da9121_of_parse_cb,
467467
.owner = THIS_MODULE,
468-
.regulators_node = of_match_ptr("regulators"),
468+
.regulators_node = "regulators",
469469
.of_map_mode = da9121_map_mode,
470470
.ops = &da9121_buck_ops,
471471
.type = REGULATOR_VOLTAGE,
@@ -484,7 +484,7 @@ static const struct regulator_desc da9220_reg[2] = {
484484
.of_match = "buck2",
485485
.of_parse_cb = da9121_of_parse_cb,
486486
.owner = THIS_MODULE,
487-
.regulators_node = of_match_ptr("regulators"),
487+
.regulators_node = "regulators",
488488
.of_map_mode = da9121_map_mode,
489489
.ops = &da9121_buck_ops,
490490
.type = REGULATOR_VOLTAGE,
@@ -506,7 +506,7 @@ static const struct regulator_desc da9122_reg[2] = {
506506
.of_match = "buck1",
507507
.of_parse_cb = da9121_of_parse_cb,
508508
.owner = THIS_MODULE,
509-
.regulators_node = of_match_ptr("regulators"),
509+
.regulators_node = "regulators",
510510
.of_map_mode = da9121_map_mode,
511511
.ops = &da9121_buck_ops,
512512
.type = REGULATOR_VOLTAGE,
@@ -525,7 +525,7 @@ static const struct regulator_desc da9122_reg[2] = {
525525
.of_match = "buck2",
526526
.of_parse_cb = da9121_of_parse_cb,
527527
.owner = THIS_MODULE,
528-
.regulators_node = of_match_ptr("regulators"),
528+
.regulators_node = "regulators",
529529
.of_map_mode = da9121_map_mode,
530530
.ops = &da9121_buck_ops,
531531
.type = REGULATOR_VOLTAGE,
@@ -546,7 +546,7 @@ static const struct regulator_desc da9217_reg = {
546546
.of_match = "buck1",
547547
.of_parse_cb = da9121_of_parse_cb,
548548
.owner = THIS_MODULE,
549-
.regulators_node = of_match_ptr("regulators"),
549+
.regulators_node = "regulators",
550550
.of_map_mode = da9121_map_mode,
551551
.ops = &da9121_buck_ops,
552552
.type = REGULATOR_VOLTAGE,
@@ -573,7 +573,7 @@ static const struct regulator_desc da9141_reg = {
573573
.of_match = "buck1",
574574
.of_parse_cb = da9121_of_parse_cb,
575575
.owner = THIS_MODULE,
576-
.regulators_node = of_match_ptr("regulators"),
576+
.regulators_node = "regulators",
577577
.of_map_mode = da9121_map_mode,
578578
.ops = &da9121_buck_ops,
579579
.type = REGULATOR_VOLTAGE,
@@ -593,7 +593,7 @@ static const struct regulator_desc da9142_reg = {
593593
.of_match = "buck1",
594594
.of_parse_cb = da9121_of_parse_cb,
595595
.owner = THIS_MODULE,
596-
.regulators_node = of_match_ptr("regulators"),
596+
.regulators_node = "regulators",
597597
.of_map_mode = da9121_map_mode,
598598
.ops = &da9121_buck_ops,
599599
.type = REGULATOR_VOLTAGE,
@@ -1195,7 +1195,7 @@ static struct i2c_driver da9121_regulator_driver = {
11951195
.driver = {
11961196
.name = "da9121",
11971197
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
1198-
.of_match_table = of_match_ptr(da9121_dt_ids),
1198+
.of_match_table = da9121_dt_ids,
11991199
},
12001200
.probe = da9121_i2c_probe,
12011201
.remove = da9121_i2c_remove,

0 commit comments

Comments
 (0)