diff options
author | 2025-05-19 14:13:17 +0800 | |
---|---|---|
committer | 2025-05-21 13:13:18 +0200 | |
commit | eb25dcf0c5946b4c167d5a9b049f0c1fec80ff80 (patch) | |
tree | 407b36341724bc39e4f2c7e60f320bf76ed43416 /scripts/lib/kdoc/kdoc_files.py | |
parent | usb: dwc3-exynos: add support for ExynosAutov920 (diff) | |
download | linux-rng-eb25dcf0c5946b4c167d5a9b049f0c1fec80ff80.tar.xz linux-rng-eb25dcf0c5946b4c167d5a9b049f0c1fec80ff80.zip |
usb: core: config: 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/20250519061317.724602-1-nichen@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions