[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87y0uxvvha.wl-tiwai@suse.de>
Date: Fri, 16 May 2025 09:57:21 +0200
From: Takashi Iwai <tiwai@...e.de>
To: Chen Ni <nichen@...as.ac.cn>
Cc: g@...vu,
perex@...ex.cz,
tiwai@...e.com,
linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ALSA: scarlett2: Use USB API functions rather than constants
On Fri, 16 May 2025 09:04:16 +0200,
Chen Ni wrote:
>
> Use the function usb_endpoint_num() rather than constants.
>
> The Coccinelle semantic patch is as follows:
>
> @@ struct usb_endpoint_descriptor *epd; @@
>
> - (epd->bEndpointAddress & \(USB_ENDPOINT_NUMBER_MASK\|0x0f\))
> + usb_endpoint_num(epd)
>
> Signed-off-by: Chen Ni <nichen@...as.ac.cn>
Thanks, applied.
Takashi
Powered by blists - more mailing lists