Commit 656ed746 authored by Chen Jiahao's avatar Chen Jiahao Committed by Mark Brown

regulator: hi6421: Remove redundant of_match_ptr() macros

Since the driver hi6421-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: default avatarChen Jiahao <chenjiahao16@huawei.com>
Link: https://lore.kernel.org/r/20230809100428.2669817-4-chenjiahao16@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent f410cfe8
...@@ -131,8 +131,8 @@ static const struct regulator_ops hi6421_buck345_ops; ...@@ -131,8 +131,8 @@ static const struct regulator_ops hi6421_buck345_ops;
[HI6421_##_id] = { \ [HI6421_##_id] = { \
.desc = { \ .desc = { \
.name = #_id, \ .name = #_id, \
.of_match = of_match_ptr(#_match), \ .of_match = #_match, \
.regulators_node = of_match_ptr("regulators"), \ .regulators_node = "regulators", \
.ops = &hi6421_ldo_ops, \ .ops = &hi6421_ldo_ops, \
.type = REGULATOR_VOLTAGE, \ .type = REGULATOR_VOLTAGE, \
.id = HI6421_##_id, \ .id = HI6421_##_id, \
...@@ -170,8 +170,8 @@ static const struct regulator_ops hi6421_buck345_ops; ...@@ -170,8 +170,8 @@ static const struct regulator_ops hi6421_buck345_ops;
[HI6421_##_id] = { \ [HI6421_##_id] = { \
.desc = { \ .desc = { \
.name = #_id, \ .name = #_id, \
.of_match = of_match_ptr(#_match), \ .of_match = #_match, \
.regulators_node = of_match_ptr("regulators"), \ .regulators_node = "regulators", \
.ops = &hi6421_ldo_linear_ops, \ .ops = &hi6421_ldo_linear_ops, \
.type = REGULATOR_VOLTAGE, \ .type = REGULATOR_VOLTAGE, \
.id = HI6421_##_id, \ .id = HI6421_##_id, \
...@@ -210,8 +210,8 @@ static const struct regulator_ops hi6421_buck345_ops; ...@@ -210,8 +210,8 @@ static const struct regulator_ops hi6421_buck345_ops;
[HI6421_##_id] = { \ [HI6421_##_id] = { \
.desc = { \ .desc = { \
.name = #_id, \ .name = #_id, \
.of_match = of_match_ptr(#_match), \ .of_match = #_match, \
.regulators_node = of_match_ptr("regulators"), \ .regulators_node = "regulators", \
.ops = &hi6421_ldo_linear_range_ops, \ .ops = &hi6421_ldo_linear_range_ops, \
.type = REGULATOR_VOLTAGE, \ .type = REGULATOR_VOLTAGE, \
.id = HI6421_##_id, \ .id = HI6421_##_id, \
...@@ -247,8 +247,8 @@ static const struct regulator_ops hi6421_buck345_ops; ...@@ -247,8 +247,8 @@ static const struct regulator_ops hi6421_buck345_ops;
[HI6421_##_id] = { \ [HI6421_##_id] = { \
.desc = { \ .desc = { \
.name = #_id, \ .name = #_id, \
.of_match = of_match_ptr(#_match), \ .of_match = #_match, \
.regulators_node = of_match_ptr("regulators"), \ .regulators_node = "regulators", \
.ops = &hi6421_buck012_ops, \ .ops = &hi6421_buck012_ops, \
.type = REGULATOR_VOLTAGE, \ .type = REGULATOR_VOLTAGE, \
.id = HI6421_##_id, \ .id = HI6421_##_id, \
...@@ -284,8 +284,8 @@ static const struct regulator_ops hi6421_buck345_ops; ...@@ -284,8 +284,8 @@ static const struct regulator_ops hi6421_buck345_ops;
[HI6421_##_id] = { \ [HI6421_##_id] = { \
.desc = { \ .desc = { \
.name = #_id, \ .name = #_id, \
.of_match = of_match_ptr(#_match), \ .of_match = #_match, \
.regulators_node = of_match_ptr("regulators"), \ .regulators_node = "regulators", \
.ops = &hi6421_buck345_ops, \ .ops = &hi6421_buck345_ops, \
.type = REGULATOR_VOLTAGE, \ .type = REGULATOR_VOLTAGE, \
.id = HI6421_##_id, \ .id = HI6421_##_id, \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment