* [PATCH] media: stk1160: Use usb_endpoint_is_isoc_in() rather than duplicating its implementation
@ 2025-06-24 16:08 Markus Elfring
0 siblings, 0 replies; only message in thread
From: Markus Elfring @ 2025-06-24 16:08 UTC (permalink / raw)
To: linux-media, Ezequiel Garcia, Mauro Carvalho Chehab
Cc: LKML, kernel-janitors, Chen Ni
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Tue, 24 Jun 2025 18:02:42 +0200
Reuse existing functionality from usb_endpoint_is_isoc_in() instead of
keeping duplicate source code.
The source code was transformed by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
drivers/media/usb/stk1160/stk1160-core.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/media/usb/stk1160/stk1160-core.c b/drivers/media/usb/stk1160/stk1160-core.c
index ce717502ea4c..25d725c2ab3c 100644
--- a/drivers/media/usb/stk1160/stk1160-core.c
+++ b/drivers/media/usb/stk1160/stk1160-core.c
@@ -195,8 +195,7 @@ static int stk1160_scan_usb(struct usb_interface *intf, struct usb_device *udev,
if (udev->speed == USB_SPEED_HIGH)
size = size * hb_mult(sizedescr);
- if (usb_endpoint_xfer_isoc(desc) &&
- usb_endpoint_dir_in(desc)) {
+ if (usb_endpoint_is_isoc_in(desc)) {
switch (desc->bEndpointAddress) {
case STK1160_EP_AUDIO:
has_audio = true;
--
2.50.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-06-24 16:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-24 16:08 [PATCH] media: stk1160: Use usb_endpoint_is_isoc_in() rather than duplicating its implementation Markus Elfring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®