aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/usbvision
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-07-17 23:50:58 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:17:52 -0400
commitf87086e302300fdff1bd32049deb7a7f3e3de7da (patch)
tree27b42587cf577a63d9f79ccb27267e0dea7188cb /drivers/media/video/usbvision
parente01117c81676dc9897f567e32cdc13a26e85280b (diff)
v4l-dvb: remove legacy checks to allow support for kernels < 2.6.10
Also remove some blank lines that were used to split compat code at -devel tree. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/usbvision')
-rw-r--r--drivers/media/video/usbvision/usbvision-core.c4
-rw-r--r--drivers/media/video/usbvision/usbvision-i2c.c5
-rw-r--r--drivers/media/video/usbvision/usbvision-video.c12
3 files changed, 0 insertions, 21 deletions
diff --git a/drivers/media/video/usbvision/usbvision-core.c b/drivers/media/video/usbvision/usbvision-core.c
index a9c5e5adba3a..abf685464b7c 100644
--- a/drivers/media/video/usbvision/usbvision-core.c
+++ b/drivers/media/video/usbvision/usbvision-core.c
@@ -169,7 +169,6 @@ static void usbvision_rvfree(void *mem, unsigned long size)
169} 169}
170 170
171 171
172
173#if ENABLE_HEXDUMP 172#if ENABLE_HEXDUMP
174static void usbvision_hexdump(const unsigned char *data, int len) 173static void usbvision_hexdump(const unsigned char *data, int len)
175{ 174{
@@ -2317,7 +2316,6 @@ static void usbvision_powerOffTimer(unsigned long data)
2317 del_timer(&usbvision->powerOffTimer); 2316 del_timer(&usbvision->powerOffTimer);
2318 INIT_WORK(&usbvision->powerOffWork, call_usbvision_power_off); 2317 INIT_WORK(&usbvision->powerOffWork, call_usbvision_power_off);
2319 (void) schedule_work(&usbvision->powerOffWork); 2318 (void) schedule_work(&usbvision->powerOffWork);
2320
2321} 2319}
2322 2320
2323void usbvision_init_powerOffTimer(struct usb_usbvision *usbvision) 2321void usbvision_init_powerOffTimer(struct usb_usbvision *usbvision)
@@ -2518,7 +2516,6 @@ int usbvision_init_isoc(struct usb_usbvision *usbvision)
2518 } 2516 }
2519 } 2517 }
2520 2518
2521
2522 /* Submit all URBs */ 2519 /* Submit all URBs */
2523 for (bufIdx = 0; bufIdx < USBVISION_NUMSBUF; bufIdx++) { 2520 for (bufIdx = 0; bufIdx < USBVISION_NUMSBUF; bufIdx++) {
2524 errCode = usb_submit_urb(usbvision->sbuf[bufIdx].urb, 2521 errCode = usb_submit_urb(usbvision->sbuf[bufIdx].urb,
@@ -2564,7 +2561,6 @@ void usbvision_stop_isoc(struct usb_usbvision *usbvision)
2564 usbvision->sbuf[bufIdx].urb = NULL; 2561 usbvision->sbuf[bufIdx].urb = NULL;
2565 } 2562 }
2566 2563
2567
2568 PDEBUG(DBG_ISOC, "%s: streaming=Stream_Off\n", __func__); 2564 PDEBUG(DBG_ISOC, "%s: streaming=Stream_Off\n", __func__);
2569 usbvision->streaming = Stream_Off; 2565 usbvision->streaming = Stream_Off;
2570 2566
diff --git a/drivers/media/video/usbvision/usbvision-i2c.c b/drivers/media/video/usbvision/usbvision-i2c.c
index e2274d77ea29..a6d00858b07e 100644
--- a/drivers/media/video/usbvision/usbvision-i2c.c
+++ b/drivers/media/video/usbvision/usbvision-i2c.c
@@ -190,7 +190,6 @@ static u32 functionality(struct i2c_adapter *adap)
190 return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_10BIT_ADDR; 190 return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_10BIT_ADDR;
191} 191}
192 192
193
194/* -----exported algorithm data: ------------------------------------- */ 193/* -----exported algorithm data: ------------------------------------- */
195 194
196static struct i2c_algorithm usbvision_algo = { 195static struct i2c_algorithm usbvision_algo = {
@@ -514,11 +513,7 @@ static struct i2c_adapter i2c_adap_template = {
514 .id = I2C_HW_B_BT848, /* FIXME */ 513 .id = I2C_HW_B_BT848, /* FIXME */
515 .client_register = attach_inform, 514 .client_register = attach_inform,
516 .client_unregister = detach_inform, 515 .client_unregister = detach_inform,
517#ifdef I2C_ADAP_CLASS_TV_ANALOG
518 .class = I2C_ADAP_CLASS_TV_ANALOG,
519#else
520 .class = I2C_CLASS_TV_ANALOG, 516 .class = I2C_CLASS_TV_ANALOG,
521#endif
522}; 517};
523 518
524static struct i2c_client i2c_client_template = { 519static struct i2c_client i2c_client_template = {
diff --git a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c
index a9e5e08caec5..cd6c41d67899 100644
--- a/drivers/media/video/usbvision/usbvision-video.c
+++ b/drivers/media/video/usbvision/usbvision-video.c
@@ -179,7 +179,6 @@ MODULE_ALIAS(DRIVER_ALIAS);
179/* /sys/bus/usb/drivers/USBVision Video Grabber */ 179/* /sys/bus/usb/drivers/USBVision Video Grabber */
180/*****************************************************************************/ 180/*****************************************************************************/
181 181
182
183#define YES_NO(x) ((x) ? "Yes" : "No") 182#define YES_NO(x) ((x) ? "Yes" : "No")
184 183
185static inline struct usb_usbvision *cd_to_usbvision(struct device *cd) 184static inline struct usb_usbvision *cd_to_usbvision(struct device *cd)
@@ -370,7 +369,6 @@ static void usbvision_remove_sysfs(struct video_device *vdev)
370 } 369 }
371} 370}
372 371
373
374/* 372/*
375 * usbvision_open() 373 * usbvision_open()
376 * 374 *
@@ -388,7 +386,6 @@ static int usbvision_v4l2_open(struct inode *inode, struct file *file)
388 386
389 PDEBUG(DBG_IO, "open"); 387 PDEBUG(DBG_IO, "open");
390 388
391
392 usbvision_reset_powerOffTimer(usbvision); 389 usbvision_reset_powerOffTimer(usbvision);
393 390
394 if (usbvision->user) 391 if (usbvision->user)
@@ -442,9 +439,6 @@ static int usbvision_v4l2_open(struct inode *inode, struct file *file)
442 mutex_unlock(&usbvision->lock); 439 mutex_unlock(&usbvision->lock);
443 } 440 }
444 441
445 if (errCode) {
446 }
447
448 /* prepare queues */ 442 /* prepare queues */
449 usbvision_empty_framequeues(usbvision); 443 usbvision_empty_framequeues(usbvision);
450 444
@@ -495,8 +489,6 @@ static int usbvision_v4l2_close(struct inode *inode, struct file *file)
495 } 489 }
496 490
497 PDEBUG(DBG_IO, "success"); 491 PDEBUG(DBG_IO, "success");
498
499
500 return 0; 492 return 0;
501} 493}
502 494
@@ -1346,9 +1338,7 @@ static int usbvision_radio_close(struct inode *inode, struct file *file)
1346 usbvision_release(usbvision); 1338 usbvision_release(usbvision);
1347 } 1339 }
1348 1340
1349
1350 PDEBUG(DBG_IO, "success"); 1341 PDEBUG(DBG_IO, "success");
1351
1352 return errCode; 1342 return errCode;
1353} 1343}
1354 1344
@@ -1360,7 +1350,6 @@ static int usbvision_vbi_open(struct inode *inode, struct file *file)
1360{ 1350{
1361 /* TODO */ 1351 /* TODO */
1362 return -ENODEV; 1352 return -ENODEV;
1363
1364} 1353}
1365 1354
1366static int usbvision_vbi_close(struct inode *inode, struct file *file) 1355static int usbvision_vbi_close(struct inode *inode, struct file *file)
@@ -1899,7 +1888,6 @@ static void __devexit usbvision_disconnect(struct usb_interface *intf)
1899 } 1888 }
1900 1889
1901 PDEBUG(DBG_PROBE, "success"); 1890 PDEBUG(DBG_PROBE, "success");
1902
1903} 1891}
1904 1892
1905static struct usb_driver usbvision_driver = { 1893static struct usb_driver usbvision_driver = {