Skip to content
Commit 1c116e55 authored by Chen Ni's avatar Chen Ni Committed by Takashi Iwai
Browse files

ALSA: usb: fcp: Use USB API functions rather than constants



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: default avatarChen Ni <nichen@iscas.ac.cn>
Link: https://patch.msgid.link/20250516070938.12520-1-nichen@iscas.ac.cn


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f616e702
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment