Skip to content

Commit 656ed74

Browse files
Chen Jiahaobroonie
authored andcommitted
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: Chen Jiahao <chenjiahao16@huawei.com> Link: https://lore.kernel.org/r/20230809100428.2669817-4-chenjiahao16@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent f410cfe commit 656ed74

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

drivers/regulator/hi6421-regulator.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ static const struct regulator_ops hi6421_buck345_ops;
131131
[HI6421_##_id] = { \
132132
.desc = { \
133133
.name = #_id, \
134-
.of_match = of_match_ptr(#_match), \
135-
.regulators_node = of_match_ptr("regulators"), \
134+
.of_match = #_match, \
135+
.regulators_node = "regulators", \
136136
.ops = &hi6421_ldo_ops, \
137137
.type = REGULATOR_VOLTAGE, \
138138
.id = HI6421_##_id, \
@@ -170,8 +170,8 @@ static const struct regulator_ops hi6421_buck345_ops;
170170
[HI6421_##_id] = { \
171171
.desc = { \
172172
.name = #_id, \
173-
.of_match = of_match_ptr(#_match), \
174-
.regulators_node = of_match_ptr("regulators"), \
173+
.of_match = #_match, \
174+
.regulators_node = "regulators", \
175175
.ops = &hi6421_ldo_linear_ops, \
176176
.type = REGULATOR_VOLTAGE, \
177177
.id = HI6421_##_id, \
@@ -210,8 +210,8 @@ static const struct regulator_ops hi6421_buck345_ops;
210210
[HI6421_##_id] = { \
211211
.desc = { \
212212
.name = #_id, \
213-
.of_match = of_match_ptr(#_match), \
214-
.regulators_node = of_match_ptr("regulators"), \
213+
.of_match = #_match, \
214+
.regulators_node = "regulators", \
215215
.ops = &hi6421_ldo_linear_range_ops, \
216216
.type = REGULATOR_VOLTAGE, \
217217
.id = HI6421_##_id, \
@@ -247,8 +247,8 @@ static const struct regulator_ops hi6421_buck345_ops;
247247
[HI6421_##_id] = { \
248248
.desc = { \
249249
.name = #_id, \
250-
.of_match = of_match_ptr(#_match), \
251-
.regulators_node = of_match_ptr("regulators"), \
250+
.of_match = #_match, \
251+
.regulators_node = "regulators", \
252252
.ops = &hi6421_buck012_ops, \
253253
.type = REGULATOR_VOLTAGE, \
254254
.id = HI6421_##_id, \
@@ -284,8 +284,8 @@ static const struct regulator_ops hi6421_buck345_ops;
284284
[HI6421_##_id] = { \
285285
.desc = { \
286286
.name = #_id, \
287-
.of_match = of_match_ptr(#_match), \
288-
.regulators_node = of_match_ptr("regulators"), \
287+
.of_match = #_match, \
288+
.regulators_node = "regulators", \
289289
.ops = &hi6421_buck345_ops, \
290290
.type = REGULATOR_VOLTAGE, \
291291
.id = HI6421_##_id, \

0 commit comments

Comments
 (0)