Skip to content

Commit 9e8925e

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/regulator/pfuze100-regulator.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,8 +699,7 @@ static int pfuze100_regulator_probe(struct i2c_client *client)
699699
return -ENOMEM;
700700

701701
if (client->dev.of_node) {
702-
match = of_match_device(of_match_ptr(pfuze_dt_ids),
703-
&client->dev);
702+
match = of_match_device(pfuze_dt_ids, &client->dev);
704703
if (!match) {
705704
dev_err(&client->dev, "Error: No device match found\n");
706705
return -ENODEV;

0 commit comments

Comments
 (0)