diff options
| author | Chen Ni <nichen@iscas.ac.cn> | 2025-06-18 11:55:40 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-06-19 12:24:08 +0200 |
| commit | 24214604d25beedf2a089bdd7bee8bb801880bcb (patch) | |
| tree | 5e4349ba9aa0c6a1232c572871f32771ec76aa9e /tools/perf/scripts/python/syscall-counts.py | |
| parent | 100a9aa232fe634bdcca380f9d8aca9c64e66c40 (diff) | |
usb: gadget: composite: 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://lore.kernel.org/r/20250618035540.290411-1-nichen@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
