Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Chen Jiahao and committed by
Mark Brown
656ed746 f410cfe8

+10 -10
+10 -10
drivers/regulator/hi6421-regulator.c
··· 131 131 [HI6421_##_id] = { \ 132 132 .desc = { \ 133 133 .name = #_id, \ 134 - .of_match = of_match_ptr(#_match), \ 135 - .regulators_node = of_match_ptr("regulators"), \ 134 + .of_match = #_match, \ 135 + .regulators_node = "regulators", \ 136 136 .ops = &hi6421_ldo_ops, \ 137 137 .type = REGULATOR_VOLTAGE, \ 138 138 .id = HI6421_##_id, \ ··· 170 170 [HI6421_##_id] = { \ 171 171 .desc = { \ 172 172 .name = #_id, \ 173 - .of_match = of_match_ptr(#_match), \ 174 - .regulators_node = of_match_ptr("regulators"), \ 173 + .of_match = #_match, \ 174 + .regulators_node = "regulators", \ 175 175 .ops = &hi6421_ldo_linear_ops, \ 176 176 .type = REGULATOR_VOLTAGE, \ 177 177 .id = HI6421_##_id, \ ··· 210 210 [HI6421_##_id] = { \ 211 211 .desc = { \ 212 212 .name = #_id, \ 213 - .of_match = of_match_ptr(#_match), \ 214 - .regulators_node = of_match_ptr("regulators"), \ 213 + .of_match = #_match, \ 214 + .regulators_node = "regulators", \ 215 215 .ops = &hi6421_ldo_linear_range_ops, \ 216 216 .type = REGULATOR_VOLTAGE, \ 217 217 .id = HI6421_##_id, \ ··· 247 247 [HI6421_##_id] = { \ 248 248 .desc = { \ 249 249 .name = #_id, \ 250 - .of_match = of_match_ptr(#_match), \ 251 - .regulators_node = of_match_ptr("regulators"), \ 250 + .of_match = #_match, \ 251 + .regulators_node = "regulators", \ 252 252 .ops = &hi6421_buck012_ops, \ 253 253 .type = REGULATOR_VOLTAGE, \ 254 254 .id = HI6421_##_id, \ ··· 284 284 [HI6421_##_id] = { \ 285 285 .desc = { \ 286 286 .name = #_id, \ 287 - .of_match = of_match_ptr(#_match), \ 288 - .regulators_node = of_match_ptr("regulators"), \ 287 + .of_match = #_match, \ 288 + .regulators_node = "regulators", \ 289 289 .ops = &hi6421_buck345_ops, \ 290 290 .type = REGULATOR_VOLTAGE, \ 291 291 .id = HI6421_##_id, \