summaryrefslogtreecommitdiff
path: root/drivers/hwmon/nsa320-hwmon.c
diff options
context:
space:
mode:
authorRuan Jinjie <ruanjinjie@huawei.com>2023-08-10 14:26:35 +0800
committerGuenter Roeck <linux@roeck-us.net>2023-08-21 06:04:31 -0700
commit7d9be29d8382030266c88a732a82d3bbc6fb0c5f (patch)
tree019eceea1768391f11e1691649b0f9b5ede6b7e7 /drivers/hwmon/nsa320-hwmon.c
parent1030892c4427e503b32ec46f88179e9138cdbf4e (diff)
hwmon: (nsa320-hwmon) Remove redundant of_match_ptr()
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>
Diffstat (limited to 'drivers/hwmon/nsa320-hwmon.c')
-rw-r--r--drivers/hwmon/nsa320-hwmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/nsa320-hwmon.c b/drivers/hwmon/nsa320-hwmon.c
index e26334469549..18076ba7fc14 100644
--- 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,
},
};