diff mbox series

[-next] hwmon: (nsa320-hwmon) Remove redundant of_match_ptr()

Message ID 20230810062635.1947552-1-ruanjinjie@huawei.com (mailing list archive)
State Accepted
Headers show
Series [-next] hwmon: (nsa320-hwmon) Remove redundant of_match_ptr() | expand

Commit Message

Jinjie Ruan Aug. 10, 2023, 6:26 a.m. UTC
The driver depends on CONFIG_OF, it is not necessary to use
of_match_ptr() here.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
---
 drivers/hwmon/nsa320-hwmon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Guenter Roeck Aug. 10, 2023, 4:18 p.m. UTC | #1
On Thu, Aug 10, 2023 at 02:26:35PM +0800, Ruan Jinjie wrote:
> The driver depends on CONFIG_OF, it is not necessary to use
> of_match_ptr() here.
> 
> Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>

Applied.

Thanks,
Guenter

> ---
>  drivers/hwmon/nsa320-hwmon.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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,
>  	},
>  };
>
diff mbox series

Patch

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,
 	},
 };