summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorChen Ni <nichen@iscas.ac.cn>2025-06-18 12:02:04 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-19 12:24:06 +0200
commit100a9aa232fe634bdcca380f9d8aca9c64e66c40 (patch)
treea92d828d81816c9dff6715a8b393c4024d20d47d /tools/perf/scripts/python/syscall-counts.py
parentd61b9060f9907e8f4bcb0577126f2523d10e6e66 (diff)
usb: gadget: net2280: Use USB API functions rather than constants
Use the function usb_endpoint_num() and usb_endpoint_type() 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) @@ 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/20250618040204.363383-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