[media] cx231xx: remove current_norm usage
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 17 Sep 2012 11:30:07 +0000 (08:30 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Mar 2013 17:26:00 +0000 (14:26 -0300)
The use of this field is deprecated since it will not work when multiple
device nodes reference the same video input (the video and vbi nodes in
this case). The norm field should be a device-global value.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/cx231xx/cx231xx-417.c
drivers/media/usb/cx231xx/cx231xx-video.c

index 28688dbcb6090cfab70386e7ac03b3526875598e..a4091dd756205e0a4227b3be8578aa71905d2355 100644 (file)
@@ -2115,7 +2115,6 @@ static struct video_device cx231xx_mpeg_template = {
        .ioctl_ops     = &mpeg_ioctl_ops,
        .minor         = -1,
        .tvnorms       = CX231xx_NORMS,
-       .current_norm  = V4L2_STD_NTSC_M,
 };
 
 void cx231xx_417_unregister(struct cx231xx *dev)
index 26d2a4fe74f13cda3a3c0f70059f2f0ea4f3e920..ae27c8287d21fd00e0ed72d7de879ce5eaf4af84 100644 (file)
@@ -2230,7 +2230,6 @@ static const struct video_device cx231xx_video_template = {
        .release      = video_device_release,
        .ioctl_ops    = &video_ioctl_ops,
        .tvnorms      = V4L2_STD_ALL,
-       .current_norm = V4L2_STD_PAL,
 };
 
 static const struct v4l2_file_operations radio_fops = {
@@ -2301,7 +2300,7 @@ int cx231xx_register_analog_devices(struct cx231xx *dev)
                     dev->name, CX231XX_VERSION);
 
        /* set default norm */
-       /*dev->norm = cx231xx_video_template.current_norm; */
+       dev->norm = V4L2_STD_PAL;
        dev->width = norm_maxw(dev);
        dev->height = norm_maxh(dev);
        dev->interlaced = 0;