Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] tm6000: remove deprecated current_norm

Replace current_norm by g_std. Also initialize the standard to the more
common NTSC-M format (which is also what current_norm used).

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
804be2d4 28221f88

+12 -3
+1 -1
drivers/media/usb/tm6000/tm6000-cards.c
··· 1114 1114 /* Default values for STD and resolutions */ 1115 1115 dev->width = 720; 1116 1116 dev->height = 480; 1117 - dev->norm = V4L2_STD_PAL_M; 1117 + dev->norm = V4L2_STD_NTSC_M; 1118 1118 1119 1119 /* Configure tuner */ 1120 1120 tm6000_config_tuner(dev);
+11 -2
drivers/media/usb/tm6000/tm6000-video.c
··· 1076 1076 return 0; 1077 1077 } 1078 1078 1079 + static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *norm) 1080 + { 1081 + struct tm6000_fh *fh = priv; 1082 + struct tm6000_core *dev = fh->dev; 1083 + 1084 + *norm = dev->norm; 1085 + return 0; 1086 + } 1087 + 1079 1088 static const char *iname[] = { 1080 1089 [TM6000_INPUT_TV] = "Television", 1081 1090 [TM6000_INPUT_COMPOSITE1] = "Composite 1", ··· 1143 1134 1144 1135 dev->input = i; 1145 1136 1146 - rc = vidioc_s_std(file, priv, dev->vfd->current_norm); 1137 + rc = vidioc_s_std(file, priv, dev->norm); 1147 1138 1148 1139 return rc; 1149 1140 } ··· 1556 1547 .vidioc_try_fmt_vid_cap = vidioc_try_fmt_vid_cap, 1557 1548 .vidioc_s_fmt_vid_cap = vidioc_s_fmt_vid_cap, 1558 1549 .vidioc_s_std = vidioc_s_std, 1550 + .vidioc_g_std = vidioc_g_std, 1559 1551 .vidioc_enum_input = vidioc_enum_input, 1560 1552 .vidioc_g_input = vidioc_g_input, 1561 1553 .vidioc_s_input = vidioc_s_input, ··· 1580 1570 .ioctl_ops = &video_ioctl_ops, 1581 1571 .release = video_device_release, 1582 1572 .tvnorms = TM6000_STD, 1583 - .current_norm = V4L2_STD_NTSC_M, 1584 1573 }; 1585 1574 1586 1575 static const struct v4l2_file_operations radio_fops = {