treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / media / usb / tm6000 / tm6000-usb-isoc.h
blobe3c6933f854d48001e6275376d11ceb32f8e652a
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * tm6000-buf.c - driver for TM5600/TM6000/TM6010 USB video capture devices
5 * Copyright (c) 2006-2007 Mauro Carvalho Chehab <mchehab@kernel.org>
6 */
8 #include <linux/videodev2.h>
10 #define TM6000_URB_MSG_LEN 180
12 struct usb_isoc_ctl {
13 /* max packet size of isoc transaction */
14 int max_pkt_size;
16 /* number of allocated urbs */
17 int num_bufs;
19 /* urb for isoc transfers */
20 struct urb **urb;
22 /* transfer buffers for isoc transfer */
23 char **transfer_buffer;
25 /* Last buffer command and region */
26 u8 cmd;
27 int pos, size, pktsize;
29 /* Last field: ODD or EVEN? */
30 int vfield, field;
32 /* Stores incomplete commands */
33 u32 tmp_buf;
34 int tmp_buf_len;
36 /* Stores already requested buffers */
37 struct tm6000_buffer *buf;