diff options
author | Devin Heitmueller <dheitmueller@kernellabs.com> | 2011-10-31 11:24:45 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-03 05:43:44 -0400 |
commit | c7a6c00194c05a30fecc84e101d4b9c8d44cffc9 (patch) | |
tree | 30a5732fa769ee11a3d907f475e417113405691a /drivers/staging | |
parent | 87ad567e257523ea8857507eaaed866ba5d20d5d (diff) |
[media] staging: as102: Fix CodingStyle errors in file as102_usb_drv.c
Fix Linux kernel coding style (whitespace and indentation) errors
in file as102_usb_drv.c. No functional changes.
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Piotr Chmura <chmooreck@poczta.onet.pl>
Signed-off-by: Sylwester Nawrocki <snjw23@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/media/as102/as102_usb_drv.c | 118 | ||||
-rw-r--r-- | drivers/staging/media/as102/as102_usb_drv.h | 3 |
2 files changed, 72 insertions, 49 deletions
diff --git a/drivers/staging/media/as102/as102_usb_drv.c b/drivers/staging/media/as102/as102_usb_drv.c index ee993960731..6e797199449 100644 --- a/drivers/staging/media/as102/as102_usb_drv.c +++ b/drivers/staging/media/as102/as102_usb_drv.c | |||
@@ -1,6 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Abilis Systems Single DVB-T Receiver | 2 | * Abilis Systems Single DVB-T Receiver |
3 | * Copyright (C) 2008 Pierrick Hascoet <pierrick.hascoet@abilis.com> | 3 | * Copyright (C) 2008 Pierrick Hascoet <pierrick.hascoet@abilis.com> |
4 | * Copyright (C) 2010 Devin Heitmueller <dheitmueller@kernellabs.com> | ||
4 | * | 5 | * |
5 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
6 | * it under the terms of the GNU General Public License as published by | 7 | * it under the terms of the GNU General Public License as published by |
@@ -49,7 +50,7 @@ struct usb_driver as102_usb_driver = { | |||
49 | .id_table = as102_usb_id_table | 50 | .id_table = as102_usb_id_table |
50 | }; | 51 | }; |
51 | 52 | ||
52 | struct file_operations as102_dev_fops = { | 53 | static const struct file_operations as102_dev_fops = { |
53 | .owner = THIS_MODULE, | 54 | .owner = THIS_MODULE, |
54 | .open = as102_open, | 55 | .open = as102_open, |
55 | .release = as102_release, | 56 | .release = as102_release, |
@@ -63,46 +64,48 @@ static struct usb_class_driver as102_usb_class_driver = { | |||
63 | 64 | ||
64 | static int as102_usb_xfer_cmd(struct as102_bus_adapter_t *bus_adap, | 65 | static int as102_usb_xfer_cmd(struct as102_bus_adapter_t *bus_adap, |
65 | unsigned char *send_buf, int send_buf_len, | 66 | unsigned char *send_buf, int send_buf_len, |
66 | unsigned char *recv_buf, int recv_buf_len) { | 67 | unsigned char *recv_buf, int recv_buf_len) |
67 | 68 | { | |
68 | int ret = 0; | 69 | int ret = 0; |
69 | ENTER(); | 70 | ENTER(); |
70 | 71 | ||
71 | if(send_buf != NULL) { | 72 | if (send_buf != NULL) { |
72 | ret = usb_control_msg(bus_adap->usb_dev, | 73 | ret = usb_control_msg(bus_adap->usb_dev, |
73 | usb_sndctrlpipe(bus_adap->usb_dev, 0), | 74 | usb_sndctrlpipe(bus_adap->usb_dev, 0), |
74 | AS102_USB_DEVICE_TX_CTRL_CMD, | 75 | AS102_USB_DEVICE_TX_CTRL_CMD, |
75 | USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, | 76 | USB_DIR_OUT | USB_TYPE_VENDOR | |
77 | USB_RECIP_DEVICE, | ||
76 | bus_adap->cmd_xid, /* value */ | 78 | bus_adap->cmd_xid, /* value */ |
77 | 0, /* index */ | 79 | 0, /* index */ |
78 | send_buf, send_buf_len, | 80 | send_buf, send_buf_len, |
79 | USB_CTRL_SET_TIMEOUT /* 200 */); | 81 | USB_CTRL_SET_TIMEOUT /* 200 */); |
80 | if(ret < 0) { | 82 | if (ret < 0) { |
81 | dprintk(debug, "usb_control_msg(send) failed, err %i\n", | 83 | dprintk(debug, "usb_control_msg(send) failed, err %i\n", |
82 | ret); | 84 | ret); |
83 | return ret; | 85 | return ret; |
84 | } | 86 | } |
85 | 87 | ||
86 | if(ret != send_buf_len) { | 88 | if (ret != send_buf_len) { |
87 | dprintk(debug, "only wrote %d of %d bytes\n", | 89 | dprintk(debug, "only wrote %d of %d bytes\n", |
88 | ret, send_buf_len); | 90 | ret, send_buf_len); |
89 | return -1; | 91 | return -1; |
90 | } | 92 | } |
91 | } | 93 | } |
92 | 94 | ||
93 | if(recv_buf != NULL) { | 95 | if (recv_buf != NULL) { |
94 | #ifdef TRACE | 96 | #ifdef TRACE |
95 | dprintk(debug, "want to read: %d bytes\n", recv_buf_len); | 97 | dprintk(debug, "want to read: %d bytes\n", recv_buf_len); |
96 | #endif | 98 | #endif |
97 | ret = usb_control_msg(bus_adap->usb_dev, | 99 | ret = usb_control_msg(bus_adap->usb_dev, |
98 | usb_rcvctrlpipe(bus_adap->usb_dev, 0), | 100 | usb_rcvctrlpipe(bus_adap->usb_dev, 0), |
99 | AS102_USB_DEVICE_RX_CTRL_CMD, | 101 | AS102_USB_DEVICE_RX_CTRL_CMD, |
100 | USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, | 102 | USB_DIR_IN | USB_TYPE_VENDOR | |
103 | USB_RECIP_DEVICE, | ||
101 | bus_adap->cmd_xid, /* value */ | 104 | bus_adap->cmd_xid, /* value */ |
102 | 0, /* index */ | 105 | 0, /* index */ |
103 | recv_buf, recv_buf_len, | 106 | recv_buf, recv_buf_len, |
104 | USB_CTRL_GET_TIMEOUT /* 200 */); | 107 | USB_CTRL_GET_TIMEOUT /* 200 */); |
105 | if(ret < 0) { | 108 | if (ret < 0) { |
106 | dprintk(debug, "usb_control_msg(recv) failed, err %i\n", | 109 | dprintk(debug, "usb_control_msg(recv) failed, err %i\n", |
107 | ret); | 110 | ret); |
108 | return ret; | 111 | return ret; |
@@ -119,18 +122,19 @@ static int as102_usb_xfer_cmd(struct as102_bus_adapter_t *bus_adap, | |||
119 | static int as102_send_ep1(struct as102_bus_adapter_t *bus_adap, | 122 | static int as102_send_ep1(struct as102_bus_adapter_t *bus_adap, |
120 | unsigned char *send_buf, | 123 | unsigned char *send_buf, |
121 | int send_buf_len, | 124 | int send_buf_len, |
122 | int swap32) { | 125 | int swap32) |
123 | 126 | { | |
124 | int ret = 0, actual_len; | 127 | int ret = 0, actual_len; |
125 | 128 | ||
126 | ret = usb_bulk_msg(bus_adap->usb_dev, usb_sndbulkpipe(bus_adap->usb_dev, 1), | 129 | ret = usb_bulk_msg(bus_adap->usb_dev, |
130 | usb_sndbulkpipe(bus_adap->usb_dev, 1), | ||
127 | send_buf, send_buf_len, &actual_len, 200); | 131 | send_buf, send_buf_len, &actual_len, 200); |
128 | if(ret) { | 132 | if (ret) { |
129 | dprintk(debug, "usb_bulk_msg(send) failed, err %i\n", ret); | 133 | dprintk(debug, "usb_bulk_msg(send) failed, err %i\n", ret); |
130 | return ret; | 134 | return ret; |
131 | } | 135 | } |
132 | 136 | ||
133 | if(actual_len != send_buf_len) { | 137 | if (actual_len != send_buf_len) { |
134 | dprintk(debug, "only wrote %d of %d bytes\n", | 138 | dprintk(debug, "only wrote %d of %d bytes\n", |
135 | actual_len, send_buf_len); | 139 | actual_len, send_buf_len); |
136 | return -1; | 140 | return -1; |
@@ -139,21 +143,22 @@ static int as102_send_ep1(struct as102_bus_adapter_t *bus_adap, | |||
139 | } | 143 | } |
140 | 144 | ||
141 | static int as102_read_ep2(struct as102_bus_adapter_t *bus_adap, | 145 | static int as102_read_ep2(struct as102_bus_adapter_t *bus_adap, |
142 | unsigned char *recv_buf, int recv_buf_len) { | 146 | unsigned char *recv_buf, int recv_buf_len) |
143 | 147 | { | |
144 | int ret = 0, actual_len; | 148 | int ret = 0, actual_len; |
145 | 149 | ||
146 | if(recv_buf == NULL) | 150 | if (recv_buf == NULL) |
147 | return -EINVAL; | 151 | return -EINVAL; |
148 | 152 | ||
149 | ret = usb_bulk_msg(bus_adap->usb_dev, usb_rcvbulkpipe(bus_adap->usb_dev, 2), | 153 | ret = usb_bulk_msg(bus_adap->usb_dev, |
154 | usb_rcvbulkpipe(bus_adap->usb_dev, 2), | ||
150 | recv_buf, recv_buf_len, &actual_len, 200); | 155 | recv_buf, recv_buf_len, &actual_len, 200); |
151 | if(ret) { | 156 | if (ret) { |
152 | dprintk(debug, "usb_bulk_msg(recv) failed, err %i\n", ret); | 157 | dprintk(debug, "usb_bulk_msg(recv) failed, err %i\n", ret); |
153 | return ret; | 158 | return ret; |
154 | } | 159 | } |
155 | 160 | ||
156 | if(actual_len != recv_buf_len) { | 161 | if (actual_len != recv_buf_len) { |
157 | dprintk(debug, "only read %d of %d bytes\n", | 162 | dprintk(debug, "only read %d of %d bytes\n", |
158 | actual_len, recv_buf_len); | 163 | actual_len, recv_buf_len); |
159 | return -1; | 164 | return -1; |
@@ -169,7 +174,8 @@ struct as102_priv_ops_t as102_priv_ops = { | |||
169 | .stop_stream = as102_usb_stop_stream, | 174 | .stop_stream = as102_usb_stop_stream, |
170 | }; | 175 | }; |
171 | 176 | ||
172 | static int as102_submit_urb_stream(struct as102_dev_t *dev, struct urb *urb) { | 177 | static int as102_submit_urb_stream(struct as102_dev_t *dev, struct urb *urb) |
178 | { | ||
173 | int err; | 179 | int err; |
174 | 180 | ||
175 | usb_fill_bulk_urb(urb, | 181 | usb_fill_bulk_urb(urb, |
@@ -180,8 +186,9 @@ static int as102_submit_urb_stream(struct as102_dev_t *dev, struct urb *urb) { | |||
180 | as102_urb_stream_irq, | 186 | as102_urb_stream_irq, |
181 | dev); | 187 | dev); |
182 | 188 | ||
183 | if ((err = usb_submit_urb(urb, GFP_ATOMIC))) | 189 | err = usb_submit_urb(urb, GFP_ATOMIC); |
184 | dprintk(debug, "%s: usb_submit_urb failed\n", __FUNCTION__); | 190 | if (err) |
191 | dprintk(debug, "%s: usb_submit_urb failed\n", __func__); | ||
185 | 192 | ||
186 | return err; | 193 | return err; |
187 | } | 194 | } |
@@ -203,7 +210,7 @@ void as102_urb_stream_irq(struct urb *urb) | |||
203 | /* do nothing ? */ | 210 | /* do nothing ? */ |
204 | #endif | 211 | #endif |
205 | } else { | 212 | } else { |
206 | if(urb->actual_length == 0) | 213 | if (urb->actual_length == 0) |
207 | memset(urb->transfer_buffer, 0, AS102_USB_BUF_SIZE); | 214 | memset(urb->transfer_buffer, 0, AS102_USB_BUF_SIZE); |
208 | } | 215 | } |
209 | 216 | ||
@@ -212,7 +219,8 @@ void as102_urb_stream_irq(struct urb *urb) | |||
212 | as102_submit_urb_stream(as102_dev, urb); | 219 | as102_submit_urb_stream(as102_dev, urb); |
213 | } | 220 | } |
214 | 221 | ||
215 | static void as102_free_usb_stream_buffer(struct as102_dev_t *dev) { | 222 | static void as102_free_usb_stream_buffer(struct as102_dev_t *dev) |
223 | { | ||
216 | int i; | 224 | int i; |
217 | 225 | ||
218 | ENTER(); | 226 | ENTER(); |
@@ -227,7 +235,8 @@ static void as102_free_usb_stream_buffer(struct as102_dev_t *dev) { | |||
227 | LEAVE(); | 235 | LEAVE(); |
228 | } | 236 | } |
229 | 237 | ||
230 | static int as102_alloc_usb_stream_buffer(struct as102_dev_t *dev) { | 238 | static int as102_alloc_usb_stream_buffer(struct as102_dev_t *dev) |
239 | { | ||
231 | int i, ret = 0; | 240 | int i, ret = 0; |
232 | 241 | ||
233 | ENTER(); | 242 | ENTER(); |
@@ -237,7 +246,7 @@ static int as102_alloc_usb_stream_buffer(struct as102_dev_t *dev) { | |||
237 | GFP_KERNEL, | 246 | GFP_KERNEL, |
238 | &dev->dma_addr); | 247 | &dev->dma_addr); |
239 | if (!dev->stream) { | 248 | if (!dev->stream) { |
240 | dprintk(debug, "%s: usb_buffer_alloc failed\n", __FUNCTION__); | 249 | dprintk(debug, "%s: usb_buffer_alloc failed\n", __func__); |
241 | return -ENOMEM; | 250 | return -ENOMEM; |
242 | } | 251 | } |
243 | 252 | ||
@@ -247,8 +256,9 @@ static int as102_alloc_usb_stream_buffer(struct as102_dev_t *dev) { | |||
247 | for (i = 0; i < MAX_STREAM_URB; i++) { | 256 | for (i = 0; i < MAX_STREAM_URB; i++) { |
248 | struct urb *urb; | 257 | struct urb *urb; |
249 | 258 | ||
250 | if (!(urb = usb_alloc_urb(0, GFP_ATOMIC))) { | 259 | urb = usb_alloc_urb(0, GFP_ATOMIC); |
251 | dprintk(debug, "%s: usb_alloc_urb failed\n", __FUNCTION__); | 260 | if (urb == NULL) { |
261 | dprintk(debug, "%s: usb_alloc_urb failed\n", __func__); | ||
252 | as102_free_usb_stream_buffer(dev); | 262 | as102_free_usb_stream_buffer(dev); |
253 | return -ENOMEM; | 263 | return -ENOMEM; |
254 | } | 264 | } |
@@ -262,18 +272,21 @@ static int as102_alloc_usb_stream_buffer(struct as102_dev_t *dev) { | |||
262 | return ret; | 272 | return ret; |
263 | } | 273 | } |
264 | 274 | ||
265 | static void as102_usb_stop_stream(struct as102_dev_t *dev) { | 275 | static void as102_usb_stop_stream(struct as102_dev_t *dev) |
276 | { | ||
266 | int i; | 277 | int i; |
267 | 278 | ||
268 | for (i = 0; i < MAX_STREAM_URB; i++) | 279 | for (i = 0; i < MAX_STREAM_URB; i++) |
269 | usb_kill_urb(dev->stream_urb[i]); | 280 | usb_kill_urb(dev->stream_urb[i]); |
270 | } | 281 | } |
271 | 282 | ||
272 | static int as102_usb_start_stream(struct as102_dev_t *dev) { | 283 | static int as102_usb_start_stream(struct as102_dev_t *dev) |
284 | { | ||
273 | int i, ret = 0; | 285 | int i, ret = 0; |
274 | 286 | ||
275 | for (i = 0; i < MAX_STREAM_URB; i++) { | 287 | for (i = 0; i < MAX_STREAM_URB; i++) { |
276 | if ((ret = as102_submit_urb_stream(dev, dev->stream_urb[i]))) { | 288 | ret = as102_submit_urb_stream(dev, dev->stream_urb[i]); |
289 | if (ret) { | ||
277 | as102_usb_stop_stream(dev); | 290 | as102_usb_stop_stream(dev); |
278 | return ret; | 291 | return ret; |
279 | } | 292 | } |
@@ -282,7 +295,8 @@ static int as102_usb_start_stream(struct as102_dev_t *dev) { | |||
282 | return 0; | 295 | return 0; |
283 | } | 296 | } |
284 | 297 | ||
285 | static void as102_usb_release(struct kref *kref) { | 298 | static void as102_usb_release(struct kref *kref) |
299 | { | ||
286 | struct as102_dev_t *as102_dev; | 300 | struct as102_dev_t *as102_dev; |
287 | 301 | ||
288 | ENTER(); | 302 | ENTER(); |
@@ -296,7 +310,8 @@ static void as102_usb_release(struct kref *kref) { | |||
296 | LEAVE(); | 310 | LEAVE(); |
297 | } | 311 | } |
298 | 312 | ||
299 | static void as102_usb_disconnect(struct usb_interface *intf) { | 313 | static void as102_usb_disconnect(struct usb_interface *intf) |
314 | { | ||
300 | struct as102_dev_t *as102_dev; | 315 | struct as102_dev_t *as102_dev; |
301 | 316 | ||
302 | ENTER(); | 317 | ENTER(); |
@@ -324,14 +339,16 @@ static void as102_usb_disconnect(struct usb_interface *intf) { | |||
324 | } | 339 | } |
325 | 340 | ||
326 | static int as102_usb_probe(struct usb_interface *intf, | 341 | static int as102_usb_probe(struct usb_interface *intf, |
327 | const struct usb_device_id *id) { | 342 | const struct usb_device_id *id) |
343 | { | ||
328 | int ret; | 344 | int ret; |
329 | struct as102_dev_t *as102_dev; | 345 | struct as102_dev_t *as102_dev; |
330 | 346 | ||
331 | ENTER(); | 347 | ENTER(); |
332 | 348 | ||
333 | if(!(as102_dev = kzalloc(sizeof(struct as102_dev_t), GFP_KERNEL))) { | 349 | as102_dev = kzalloc(sizeof(struct as102_dev_t), GFP_KERNEL); |
334 | err("%s: kzalloc failed", __FUNCTION__); | 350 | if (as102_dev == NULL) { |
351 | err("%s: kzalloc failed", __func__); | ||
335 | return -ENOMEM; | 352 | return -ENOMEM; |
336 | } | 353 | } |
337 | 354 | ||
@@ -352,17 +369,19 @@ static int as102_usb_probe(struct usb_interface *intf, | |||
352 | as102_dev->bus_adap.usb_dev = usb_get_dev(interface_to_usbdev(intf)); | 369 | as102_dev->bus_adap.usb_dev = usb_get_dev(interface_to_usbdev(intf)); |
353 | 370 | ||
354 | /* we can register the device now, as it is ready */ | 371 | /* we can register the device now, as it is ready */ |
355 | if((ret = usb_register_dev(intf, &as102_usb_class_driver)) < 0) {; | 372 | ret = usb_register_dev(intf, &as102_usb_class_driver); |
373 | if (ret < 0) { | ||
356 | /* something prevented us from registering this driver */ | 374 | /* something prevented us from registering this driver */ |
357 | err("%s: usb_register_dev() failed (errno = %d)", | 375 | err("%s: usb_register_dev() failed (errno = %d)", |
358 | __FUNCTION__, ret); | 376 | __func__, ret); |
359 | goto failed; | 377 | goto failed; |
360 | } | 378 | } |
361 | 379 | ||
362 | printk(KERN_INFO "%s: device has been detected\n", DRIVER_NAME); | 380 | printk(KERN_INFO "%s: device has been detected\n", DRIVER_NAME); |
363 | 381 | ||
364 | /* request buffer allocation for streaming */ | 382 | /* request buffer allocation for streaming */ |
365 | if ((ret = as102_alloc_usb_stream_buffer(as102_dev)) != 0) | 383 | ret = as102_alloc_usb_stream_buffer(as102_dev); |
384 | if (ret != 0) | ||
366 | goto failed; | 385 | goto failed; |
367 | 386 | ||
368 | /* register dvb layer */ | 387 | /* register dvb layer */ |
@@ -377,7 +396,8 @@ failed: | |||
377 | return ret; | 396 | return ret; |
378 | } | 397 | } |
379 | 398 | ||
380 | static int as102_open(struct inode *inode, struct file *file) { | 399 | static int as102_open(struct inode *inode, struct file *file) |
400 | { | ||
381 | int ret = 0, minor = 0; | 401 | int ret = 0, minor = 0; |
382 | struct usb_interface *intf = NULL; | 402 | struct usb_interface *intf = NULL; |
383 | struct as102_dev_t *dev = NULL; | 403 | struct as102_dev_t *dev = NULL; |
@@ -388,15 +408,17 @@ static int as102_open(struct inode *inode, struct file *file) { | |||
388 | minor = iminor(inode); | 408 | minor = iminor(inode); |
389 | 409 | ||
390 | /* fetch device from usb interface */ | 410 | /* fetch device from usb interface */ |
391 | if((intf = usb_find_interface(&as102_usb_driver, minor)) == NULL) { | 411 | intf = usb_find_interface(&as102_usb_driver, minor); |
412 | if (intf == NULL) { | ||
392 | printk(KERN_ERR "%s: can't find device for minor %d\n", | 413 | printk(KERN_ERR "%s: can't find device for minor %d\n", |
393 | __FUNCTION__, minor); | 414 | __func__, minor); |
394 | ret = -ENODEV; | 415 | ret = -ENODEV; |
395 | goto exit; | 416 | goto exit; |
396 | } | 417 | } |
397 | 418 | ||
398 | /* get our device */ | 419 | /* get our device */ |
399 | if((dev = usb_get_intfdata(intf)) == NULL) { | 420 | dev = usb_get_intfdata(intf); |
421 | if (dev == NULL) { | ||
400 | ret = -EFAULT; | 422 | ret = -EFAULT; |
401 | goto exit; | 423 | goto exit; |
402 | } | 424 | } |
@@ -412,13 +434,15 @@ exit: | |||
412 | return ret; | 434 | return ret; |
413 | } | 435 | } |
414 | 436 | ||
415 | static int as102_release(struct inode *inode, struct file *file) { | 437 | static int as102_release(struct inode *inode, struct file *file) |
438 | { | ||
416 | int ret = 0; | 439 | int ret = 0; |
417 | struct as102_dev_t *dev = NULL; | 440 | struct as102_dev_t *dev = NULL; |
418 | 441 | ||
419 | ENTER(); | 442 | ENTER(); |
420 | 443 | ||
421 | if((dev = file->private_data) != NULL ) { | 444 | dev = file->private_data; |
445 | if (dev != NULL) { | ||
422 | /* decrement the count on our device */ | 446 | /* decrement the count on our device */ |
423 | kref_put(&dev->kref, as102_usb_release); | 447 | kref_put(&dev->kref, as102_usb_release); |
424 | } | 448 | } |
diff --git a/drivers/staging/media/as102/as102_usb_drv.h b/drivers/staging/media/as102/as102_usb_drv.h index abb858ececb..3abab6cc238 100644 --- a/drivers/staging/media/as102/as102_usb_drv.h +++ b/drivers/staging/media/as102/as102_usb_drv.h | |||
@@ -1,6 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Abilis Systems Single DVB-T Receiver | 2 | * Abilis Systems Single DVB-T Receiver |
3 | * Copyright (C) 2008 Pierrick Hascoet <pierrick.hascoet@abilis.com> | 3 | * Copyright (C) 2008 Pierrick Hascoet <pierrick.hascoet@abilis.com> |
4 | * Copyright (C) 2010 Devin Heitmueller <dheitmueller@kernellabs.com> | ||
4 | * | 5 | * |
5 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
6 | * it under the terms of the GNU General Public License as published by | 7 | * it under the terms of the GNU General Public License as published by |
@@ -35,8 +36,6 @@ | |||
35 | #define PCTV_74E_USB_VID 0x2013 | 36 | #define PCTV_74E_USB_VID 0x2013 |
36 | #define PCTV_74E_USB_PID 0x0246 | 37 | #define PCTV_74E_USB_PID 0x0246 |
37 | 38 | ||
38 | extern struct file_operations as102_dev_fops; | ||
39 | |||
40 | #if (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 18)) | 39 | #if (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 18)) |
41 | void as102_urb_stream_irq(struct urb *urb, struct pt_regs *regs); | 40 | void as102_urb_stream_irq(struct urb *urb, struct pt_regs *regs); |
42 | #else | 41 | #else |