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: 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>

authored by

Chen Jiahao and committed by
Mark Brown
f410cfe8 3a6d93eb

+2 -2
+2 -2
drivers/regulator/lp87565-regulator.c
··· 29 29 .name = _name, \ 30 30 .supply_name = _of "-in", \ 31 31 .id = _id, \ 32 - .of_match = of_match_ptr(_of), \ 33 - .regulators_node = of_match_ptr("regulators"),\ 32 + .of_match = _of, \ 33 + .regulators_node = "regulators", \ 34 34 .ops = &_ops, \ 35 35 .n_voltages = _n, \ 36 36 .type = REGULATOR_VOLTAGE, \