aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-11-11 11:23:54 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:02:07 -0500
commitcb77d010221e66c63f4a71546fed73be9b12b9a3 (patch)
treef8a735072c6bf432ae39ad26267477a7a5b5a6e7 /drivers
parent195a4ef627e110cd468a69fdb973548e6914577a (diff)
V4L/DVB (6586): Remove some dead code and make drive fully V4L2 compatible
There were some vestiges of an old V4L1 I2C driver that were called by em28xx. This patch removes this dead code, and replaces videodev.h to videodev2.h Now, this driver doesn't require V4L1 anymore. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/em28xx/Kconfig2
-rw-r--r--drivers/media/video/em28xx/em28xx-video.c10
-rw-r--r--drivers/media/video/em28xx/em28xx.h3
3 files changed, 2 insertions, 13 deletions
diff --git a/drivers/media/video/em28xx/Kconfig b/drivers/media/video/em28xx/Kconfig
index c1127802ad9c..813077b6ef7f 100644
--- a/drivers/media/video/em28xx/Kconfig
+++ b/drivers/media/video/em28xx/Kconfig
@@ -1,6 +1,6 @@
1config VIDEO_EM28XX 1config VIDEO_EM28XX
2 tristate "Empia EM2800/2820/2840 USB video capture support" 2 tristate "Empia EM2800/2820/2840 USB video capture support"
3 depends on VIDEO_V4L1 && I2C && INPUT 3 depends on VIDEO_DEV && I2C && INPUT
4 select VIDEO_TUNER 4 select VIDEO_TUNER
5 select VIDEO_TVEEPROM 5 select VIDEO_TVEEPROM
6 select VIDEO_IR 6 select VIDEO_IR
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c
index 022afb7b98c4..c4db1aebdcd7 100644
--- a/drivers/media/video/em28xx/em28xx-video.c
+++ b/drivers/media/video/em28xx/em28xx-video.c
@@ -1675,16 +1675,6 @@ static int em28xx_init_dev(struct em28xx **devhandle, struct usb_device *udev,
1675 dev->em28xx_read_reg_req = em28xx_read_reg_req; 1675 dev->em28xx_read_reg_req = em28xx_read_reg_req;
1676 dev->is_em2800 = em28xx_boards[dev->model].is_em2800; 1676 dev->is_em2800 = em28xx_boards[dev->model].is_em2800;
1677 1677
1678 /* setup video picture settings for saa7113h */
1679 memset(&dev->vpic, 0, sizeof(dev->vpic));
1680 dev->vpic.colour = 128 << 8;
1681 dev->vpic.hue = 128 << 8;
1682 dev->vpic.brightness = 128 << 8;
1683 dev->vpic.contrast = 192 << 8;
1684 dev->vpic.whiteness = 128 << 8; /* This one isn't used */
1685 dev->vpic.depth = 16;
1686 dev->vpic.palette = VIDEO_PALETTE_YUV422;
1687
1688 em28xx_pre_card_setup(dev); 1678 em28xx_pre_card_setup(dev);
1689 1679
1690 errCode = em28xx_config(dev); 1680 errCode = em28xx_config(dev);
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h
index 672880383de8..f355075d50de 100644
--- a/drivers/media/video/em28xx/em28xx.h
+++ b/drivers/media/video/em28xx/em28xx.h
@@ -25,7 +25,7 @@
25#ifndef _EM28XX_H 25#ifndef _EM28XX_H
26#define _EM28XX_H 26#define _EM28XX_H
27 27
28#include <linux/videodev.h> 28#include <linux/videodev2.h>
29#include <linux/i2c.h> 29#include <linux/i2c.h>
30#include <linux/mutex.h> 30#include <linux/mutex.h>
31#include <media/ir-kbd-i2c.h> 31#include <media/ir-kbd-i2c.h>
@@ -239,7 +239,6 @@ struct em28xx {
239 /* video for linux */ 239 /* video for linux */
240 int users; /* user count for exclusive use */ 240 int users; /* user count for exclusive use */
241 struct video_device *vdev; /* video for linux device struct */ 241 struct video_device *vdev; /* video for linux device struct */
242 struct video_picture vpic; /* picture settings only used to init saa7113h */
243 struct em28xx_tvnorm *tvnorm; /* selected tv norm */ 242 struct em28xx_tvnorm *tvnorm; /* selected tv norm */
244 int ctl_freq; /* selected frequency */ 243 int ctl_freq; /* selected frequency */
245 unsigned int ctl_input; /* selected input */ 244 unsigned int ctl_input; /* selected input */