diff options
| author | Chen Ni <nichen@iscas.ac.cn> | 2025-06-18 09:14:30 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2025-08-29 12:04:01 +0300 |
| commit | 121c853ed28024ae408b64ef003eb45c4fb7cc70 (patch) | |
| tree | 8abc643eb27bcf001259bea3ccce1375f55bd0d0 /include/linux/misc | |
| parent | 5954ad7d1af92cb6244c5f31216e43af55febbb7 (diff) | |
| download | linux-121c853ed28024ae408b64ef003eb45c4fb7cc70.tar.xz | |
media: au0828: Use USB API functions rather than constants
Use the function usb_endpoint_dir_in() and usb_endpoint_type()
rather than constants.
The Coccinelle semantic patch is as follows:
@@ struct usb_endpoint_descriptor *epd; @@
- ((epd->bEndpointAddress & \(USB_ENDPOINT_DIR_MASK\|0x80\)) ==
- \(USB_DIR_IN\|0x80\))
+ usb_endpoint_dir_in(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>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include/linux/misc')
0 files changed, 0 insertions, 0 deletions
