flexcop-usb.c (58e16d792a6a8c6b750f637a4649967fcac853dc) | flexcop-usb.c (649cd16c438f51d4cd777e71ca1f47f6e0c5e65d) |
---|---|
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" --- 490 unchanged lines hidden (view full) --- 499urb_error: 500 flexcop_usb_transfer_exit(fc_usb); 501 return ret; 502} 503 504static int flexcop_usb_init(struct flexcop_usb *fc_usb) 505{ 506 /* use the alternate setting with the larges buffer */ | 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" --- 490 unchanged lines hidden (view full) --- 499urb_error: 500 flexcop_usb_transfer_exit(fc_usb); 501 return ret; 502} 503 504static int flexcop_usb_init(struct flexcop_usb *fc_usb) 505{ 506 /* use the alternate setting with the larges buffer */ |
507 usb_set_interface(fc_usb->udev,0,1); | 507 int ret = usb_set_interface(fc_usb->udev, 0, 1); 508 509 if (ret) { 510 err("set interface failed."); 511 return ret; 512 } 513 |
508 switch (fc_usb->udev->speed) { 509 case USB_SPEED_LOW: 510 err("cannot handle USB speed because it is too slow."); 511 return -ENODEV; 512 break; 513 case USB_SPEED_FULL: 514 info("running at FULL speed."); 515 break; --- 103 unchanged lines hidden --- | 514 switch (fc_usb->udev->speed) { 515 case USB_SPEED_LOW: 516 err("cannot handle USB speed because it is too slow."); 517 return -ENODEV; 518 break; 519 case USB_SPEED_FULL: 520 info("running at FULL speed."); 521 break; --- 103 unchanged lines hidden --- |