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: mpq7920: Remove redundant of_match_ptr() macro

Since the driver mpq7920 depends on CONFIG_OF,
it makes no difference to wrap of_match_ptr() here.

Remove the of_match_ptr() macro to clean it up.

Signed-off-by: Chen Jiahao <chenjiahao16@huawei.com>
Link: https://lore.kernel.org/r/20230809100428.2669817-6-chenjiahao16@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Chen Jiahao and committed by
Mark Brown
c329adf3 3988795e

+1 -1
+1 -1
drivers/regulator/mpq7920.c
··· 318 318 .driver = { 319 319 .name = "mpq7920", 320 320 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 321 - .of_match_table = of_match_ptr(mpq7920_of_match), 321 + .of_match_table = mpq7920_of_match, 322 322 }, 323 323 .probe = mpq7920_i2c_probe, 324 324 .id_table = mpq7920_id,