projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c329adf
)
regulator: pfuze100-regulator: Remove redundant of_match_ptr() macro
author
Chen Jiahao
<chenjiahao16@huawei.com>
Wed, 9 Aug 2023 10:04:27 +0000
(10:04 +0000)
committer
Mark Brown
<broonie@kernel.org>
Wed, 9 Aug 2023 11:52:45 +0000
(12:52 +0100)
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>
drivers/regulator/pfuze100-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/pfuze100-regulator.c
b/drivers/regulator/pfuze100-regulator.c
index 8d7e6c3233243f0d414a08db93b43ac43f9fa052..46854602b3ea63853099b1cf20af539416a59ac4 100644
(file)
--- a/
drivers/regulator/pfuze100-regulator.c
+++ b/
drivers/regulator/pfuze100-regulator.c
@@
-699,8
+699,7
@@
static int pfuze100_regulator_probe(struct i2c_client *client)
return -ENOMEM;
if (client->dev.of_node) {
- match = of_match_device(of_match_ptr(pfuze_dt_ids),
- &client->dev);
+ match = of_match_device(pfuze_dt_ids, &client->dev);
if (!match) {
dev_err(&client->dev, "Error: No device match found\n");
return -ENODEV;