projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3988795
)
regulator: mpq7920: Remove redundant of_match_ptr() macro
author
Chen Jiahao
<chenjiahao16@huawei.com>
Wed, 9 Aug 2023 10:04:26 +0000
(10:04 +0000)
committer
Mark Brown
<broonie@kernel.org>
Wed, 9 Aug 2023 11:52:44 +0000
(12:52 +0100)
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>
drivers/regulator/mpq7920.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/mpq7920.c
b/drivers/regulator/mpq7920.c
index
4926c22
..
a670e09
100644
(file)
--- a/
drivers/regulator/mpq7920.c
+++ b/
drivers/regulator/mpq7920.c
@@
-318,7
+318,7
@@
static struct i2c_driver mpq7920_regulator_driver = {
.driver = {
.name = "mpq7920",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
- .of_match_table =
of_match_ptr(mpq7920_of_match)
,
+ .of_match_table =
mpq7920_of_match
,
},
.probe = mpq7920_i2c_probe,
.id_table = mpq7920_id,