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:
1030892
)
hwmon: (nsa320-hwmon) Remove redundant of_match_ptr()
author
Ruan Jinjie
<ruanjinjie@huawei.com>
Thu, 10 Aug 2023 06:26:35 +0000
(14:26 +0800)
committer
Guenter Roeck
<linux@roeck-us.net>
Mon, 21 Aug 2023 13:04:31 +0000
(06:04 -0700)
The driver depends on CONFIG_OF, it is not necessary to use
of_match_ptr() here.
Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Link:
https://lore.kernel.org/r/20230810062635.1947552-1-ruanjinjie@huawei.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nsa320-hwmon.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/nsa320-hwmon.c
b/drivers/hwmon/nsa320-hwmon.c
index e2633446954914ae78650cd881f41418775dba43..18076ba7fc1472aaa6e1091226eb8ff7ef0fda5e 100644
(file)
--- a/
drivers/hwmon/nsa320-hwmon.c
+++ b/
drivers/hwmon/nsa320-hwmon.c
@@
-191,7
+191,7
@@
static struct platform_driver nsa320_hwmon_driver = {
.probe = nsa320_hwmon_probe,
.driver = {
.name = "nsa320-hwmon",
- .of_match_table = of_
match_ptr(of_nsa320_hwmon_match)
,
+ .of_match_table = of_
nsa320_hwmon_match
,
},
};