diff options
author | 2025-05-19 14:31:20 +0800 | |
---|---|---|
committer | 2025-05-21 13:13:24 +0200 | |
commit | b48a2e0ba39838c2b6f7ee95d7b373050224c6f8 (patch) | |
tree | 1863d15694d7a13457daa42fec4c23d864afab80 /scripts/lib/kdoc/kdoc_files.py | |
parent | usb: gadget: epautoconf: Use USB API functions rather than constants (diff) | |
download | linux-rng-b48a2e0ba39838c2b6f7ee95d7b373050224c6f8.tar.xz linux-rng-b48a2e0ba39838c2b6f7ee95d7b373050224c6f8.zip |
usb: gadget: lpc32xx_udc: Use USB API functions rather than constants
Use the function usb_endpoint_type() rather than constants.
The Coccinelle semantic patch is as follows:
@@ struct usb_endpoint_descriptor *epd; @@
- (epd->bmAttributes & \(USB_ENDPOINT_XFERTYPE_MASK\|3\))
+ usb_endpoint_type(epd)
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Link: https://lore.kernel.org/r/20250519063120.724793-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