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:12:22 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-19 12:24:03 +0200
commitfd2f928a5f7bc2f95887478c25b817f6e2215f3d (patch)
treec408d130c257d0679eb145ead3d2ed067ee651c1 /tools/perf/scripts/python/syscall-counts.py
parentb0ef41f1640e618aa37aa08ca4cd2a32e63b3dcb (diff)
usb: gadget: udc-xilinx: 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/20250618041222.408372-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