Re: [PATCH] ALSA: usb: fcp: Use USB API functions rather than constants

From: Takashi Iwai
Date: Fri May 16 2025 - 03:57:49 EST


On Fri, 16 May 2025 09:09:38 +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@xxxxxxxxxxx>

Thanks, applied.


Takashi