flexcop-usb.c (82fe45f3fbeeb7add918c2c49fbde5b20b780714) flexcop-usb.c (f62dc8f6bf82d1b307fc37d8d22cc79f67856c2f)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Linux driver for digital TV devices equipped with B2C2 FlexcopII(b)/III
4 * flexcop-usb.c - covers the USB part
5 * see flexcop.c for copyright information
6 */
7#define FC_LOG_PREFIX "flexcop_usb"
8#include "flexcop-usb.h"

--- 501 unchanged lines hidden (view full) ---

510 ret = usb_set_interface(fc_usb->udev, 0, 1);
511 if (ret) {
512 err("set interface failed.");
513 return ret;
514 }
515
516 alt = fc_usb->uintf->cur_altsetting;
517
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Linux driver for digital TV devices equipped with B2C2 FlexcopII(b)/III
4 * flexcop-usb.c - covers the USB part
5 * see flexcop.c for copyright information
6 */
7#define FC_LOG_PREFIX "flexcop_usb"
8#include "flexcop-usb.h"

--- 501 unchanged lines hidden (view full) ---

510 ret = usb_set_interface(fc_usb->udev, 0, 1);
511 if (ret) {
512 err("set interface failed.");
513 return ret;
514 }
515
516 alt = fc_usb->uintf->cur_altsetting;
517
518 if (alt->desc.bNumEndpoints < 1)
518 if (alt->desc.bNumEndpoints < 2)
519 return -ENODEV;
520 if (!usb_endpoint_is_isoc_in(&alt->endpoint[0].desc))
521 return -ENODEV;
522
523 switch (fc_usb->udev->speed) {
524 case USB_SPEED_LOW:
525 err("cannot handle USB speed because it is too slow.");
526 return -ENODEV;

--- 113 unchanged lines hidden ---
519 return -ENODEV;
520 if (!usb_endpoint_is_isoc_in(&alt->endpoint[0].desc))
521 return -ENODEV;
522
523 switch (fc_usb->udev->speed) {
524 case USB_SPEED_LOW:
525 err("cannot handle USB speed because it is too slow.");
526 return -ENODEV;

--- 113 unchanged lines hidden ---