Skip to content

Commit f410cfe

Browse files
Chen Jiahaobroonie
authored andcommitted
regulator: lp87565: Remove redundant of_match_ptr() macros
Since the driver lp87565-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-3-chenjiahao16@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 3a6d93e commit f410cfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/regulator/lp87565-regulator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ enum LP87565_regulator_id {
2929
.name = _name, \
3030
.supply_name = _of "-in", \
3131
.id = _id, \
32-
.of_match = of_match_ptr(_of), \
33-
.regulators_node = of_match_ptr("regulators"),\
32+
.of_match = _of, \
33+
.regulators_node = "regulators", \
3434
.ops = &_ops, \
3535
.n_voltages = _n, \
3636
.type = REGULATOR_VOLTAGE, \

0 commit comments

Comments
 (0)