Skip to content

Commit c329adf

Browse files
Chen Jiahaobroonie
authored andcommitted
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>
1 parent 3988795 commit c329adf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/mpq7920.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ static struct i2c_driver mpq7920_regulator_driver = {
318318
.driver = {
319319
.name = "mpq7920",
320320
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
321-
.of_match_table = of_match_ptr(mpq7920_of_match),
321+
.of_match_table = mpq7920_of_match,
322322
},
323323
.probe = mpq7920_i2c_probe,
324324
.id_table = mpq7920_id,

0 commit comments

Comments
 (0)