flexcop-usb.c (1b976fc6d684e3282914cdbe7a8d68fdce19095c) | flexcop-usb.c (74a96b51a36de4d86660fbc56b05d86668162d6b) |
---|---|
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" --- 281 unchanged lines hidden (view full) --- 290 if (ret >= 0) { 291 ret = 0; 292 if ((request_type & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN) 293 memcpy(buf, fc_usb->data, buflen); 294 } 295 296 mutex_unlock(&fc_usb->data_mutex); 297 | 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" --- 281 unchanged lines hidden (view full) --- 290 if (ret >= 0) { 291 ret = 0; 292 if ((request_type & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN) 293 memcpy(buf, fc_usb->data, buflen); 294 } 295 296 mutex_unlock(&fc_usb->data_mutex); 297 |
298 return 0; | 298 return ret; |
299} 300 301/* actual bus specific access functions, 302 make sure prototype are/will be equal to pci */ 303static flexcop_ibi_value flexcop_usb_read_ibi_reg(struct flexcop_device *fc, 304 flexcop_ibi_register reg) 305{ 306 flexcop_ibi_value val; --- 321 unchanged lines hidden --- | 299} 300 301/* actual bus specific access functions, 302 make sure prototype are/will be equal to pci */ 303static flexcop_ibi_value flexcop_usb_read_ibi_reg(struct flexcop_device *fc, 304 flexcop_ibi_register reg) 305{ 306 flexcop_ibi_value val; --- 321 unchanged lines hidden --- |