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

[media] via-camera: replace current_norm by g_std

The current_norm field is deprecated. Replace it by properly implementing
g_std.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
d31e545b 8c84ac51

+7 -1
+7 -1
drivers/media/platform/via-camera.c
··· 837 837 return 0; 838 838 } 839 839 840 + static int viacam_g_std(struct file *filp, void *priv, v4l2_std_id *std) 841 + { 842 + *std = V4L2_STD_NTSC_M; 843 + return 0; 844 + } 845 + 840 846 /* 841 847 * Video format stuff. Here is our default format until 842 848 * user space messes with things. ··· 1169 1163 .vidioc_g_input = viacam_g_input, 1170 1164 .vidioc_s_input = viacam_s_input, 1171 1165 .vidioc_s_std = viacam_s_std, 1166 + .vidioc_g_std = viacam_g_std, 1172 1167 .vidioc_enum_fmt_vid_cap = viacam_enum_fmt_vid_cap, 1173 1168 .vidioc_try_fmt_vid_cap = viacam_try_fmt_vid_cap, 1174 1169 .vidioc_g_fmt_vid_cap = viacam_g_fmt_vid_cap, ··· 1257 1250 .name = "via-camera", 1258 1251 .minor = -1, 1259 1252 .tvnorms = V4L2_STD_NTSC_M, 1260 - .current_norm = V4L2_STD_NTSC_M, 1261 1253 .fops = &viacam_fops, 1262 1254 .ioctl_ops = &viacam_ioctl_ops, 1263 1255 .release = video_device_release_empty, /* Check this */