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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>

Reviewed-by: Takashi Iwai <tiwai@xxxxxxx>


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
> 



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux