diff mbox series

[-next,5/5] ALSA: Remove redundant of_match_ptr()

Message ID 20230811071426.2343133-6-ruanjinjie@huawei.com (mailing list archive)
State New, archived
Headers show
Series sound: Remove redundant of_match_ptr() macro | expand

Commit Message

Jinjie Ruan Aug. 11, 2023, 7:14 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>
---
 sound/drivers/serial-generic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Takashi Iwai Aug. 11, 2023, 7:49 a.m. UTC | #1
On Fri, 11 Aug 2023 09:14:26 +0200,
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>

Reviewed-by: Takashi Iwai <tiwai@suse.de>


thanks,

Takashi

> ---
>  sound/drivers/serial-generic.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/drivers/serial-generic.c b/sound/drivers/serial-generic.c
> index b0262541802a..c8db6c75d133 100644
> --- a/sound/drivers/serial-generic.c
> +++ b/sound/drivers/serial-generic.c
> @@ -366,7 +366,7 @@ MODULE_DEVICE_TABLE(of, snd_serial_generic_dt_ids);
>  static struct serdev_device_driver snd_serial_generic_driver = {
>  	.driver	= {
>  		.name		= "snd-serial-generic",
> -		.of_match_table	= of_match_ptr(snd_serial_generic_dt_ids),
> +		.of_match_table	= snd_serial_generic_dt_ids,
>  	},
>  	.probe	= snd_serial_generic_probe,
>  };
> -- 
> 2.34.1
>
diff mbox series

Patch

diff --git a/sound/drivers/serial-generic.c b/sound/drivers/serial-generic.c
index b0262541802a..c8db6c75d133 100644
--- a/sound/drivers/serial-generic.c
+++ b/sound/drivers/serial-generic.c
@@ -366,7 +366,7 @@  MODULE_DEVICE_TABLE(of, snd_serial_generic_dt_ids);
 static struct serdev_device_driver snd_serial_generic_driver = {
 	.driver	= {
 		.name		= "snd-serial-generic",
-		.of_match_table	= of_match_ptr(snd_serial_generic_dt_ids),
+		.of_match_table	= snd_serial_generic_dt_ids,
 	},
 	.probe	= snd_serial_generic_probe,
 };