Commit f616e70
ALSA: scarlett2: 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: Chen Ni <nichen@iscas.ac.cn>
Link: https://patch.msgid.link/20250516070416.12458-1-nichen@iscas.ac.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>1 parent 6f0ee1d commit f616e70
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8574 | 8574 | | |
8575 | 8575 | | |
8576 | 8576 | | |
8577 | | - | |
8578 | | - | |
| 8577 | + | |
8579 | 8578 | | |
8580 | 8579 | | |
8581 | 8580 | | |
| |||
0 commit comments