aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/meye.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/meye.c')
-rw-r--r--drivers/media/video/meye.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/drivers/media/video/meye.c b/drivers/media/video/meye.c
index e7ccbc895d7a..2fb5854cf6f0 100644
--- a/drivers/media/video/meye.c
+++ b/drivers/media/video/meye.c
@@ -1253,7 +1253,7 @@ static int vidioc_g_ctrl(struct file *file, void *fh, struct v4l2_control *c)
1253 return 0; 1253 return 0;
1254} 1254}
1255 1255
1256static int vidioc_enum_fmt_cap(struct file *file, void *fh, 1256static int vidioc_enum_fmt_vid_cap(struct file *file, void *fh,
1257 struct v4l2_fmtdesc *f) 1257 struct v4l2_fmtdesc *f)
1258{ 1258{
1259 if (f->index > 1) 1259 if (f->index > 1)
@@ -1283,7 +1283,7 @@ static int vidioc_enum_fmt_cap(struct file *file, void *fh,
1283 return 0; 1283 return 0;
1284} 1284}
1285 1285
1286static int vidioc_try_fmt_cap(struct file *file, void *fh, 1286static int vidioc_try_fmt_vid_cap(struct file *file, void *fh,
1287 struct v4l2_format *f) 1287 struct v4l2_format *f)
1288{ 1288{
1289 if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) 1289 if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
@@ -1316,7 +1316,8 @@ static int vidioc_try_fmt_cap(struct file *file, void *fh,
1316 return 0; 1316 return 0;
1317} 1317}
1318 1318
1319static int vidioc_g_fmt_cap(struct file *file, void *fh, struct v4l2_format *f) 1319static int vidioc_g_fmt_vid_cap(struct file *file, void *fh,
1320 struct v4l2_format *f)
1320{ 1321{
1321 if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) 1322 if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
1322 return -EINVAL; 1323 return -EINVAL;
@@ -1346,7 +1347,8 @@ static int vidioc_g_fmt_cap(struct file *file, void *fh, struct v4l2_format *f)
1346 return 0; 1347 return 0;
1347} 1348}
1348 1349
1349static int vidioc_s_fmt_cap(struct file *file, void *fh, struct v4l2_format *f) 1350static int vidioc_s_fmt_vid_cap(struct file *file, void *fh,
1351 struct v4l2_format *f)
1350{ 1352{
1351 if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) 1353 if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
1352 return -EINVAL; 1354 return -EINVAL;
@@ -1709,10 +1711,10 @@ static struct video_device meye_template = {
1709 .vidioc_queryctrl = vidioc_queryctrl, 1711 .vidioc_queryctrl = vidioc_queryctrl,
1710 .vidioc_s_ctrl = vidioc_s_ctrl, 1712 .vidioc_s_ctrl = vidioc_s_ctrl,
1711 .vidioc_g_ctrl = vidioc_g_ctrl, 1713 .vidioc_g_ctrl = vidioc_g_ctrl,
1712 .vidioc_enum_fmt_cap = vidioc_enum_fmt_cap, 1714 .vidioc_enum_fmt_vid_cap = vidioc_enum_fmt_vid_cap,
1713 .vidioc_try_fmt_cap = vidioc_try_fmt_cap, 1715 .vidioc_try_fmt_vid_cap = vidioc_try_fmt_vid_cap,
1714 .vidioc_g_fmt_cap = vidioc_g_fmt_cap, 1716 .vidioc_g_fmt_vid_cap = vidioc_g_fmt_vid_cap,
1715 .vidioc_s_fmt_cap = vidioc_s_fmt_cap, 1717 .vidioc_s_fmt_vid_cap = vidioc_s_fmt_vid_cap,
1716 .vidioc_reqbufs = vidioc_reqbufs, 1718 .vidioc_reqbufs = vidioc_reqbufs,
1717 .vidioc_querybuf = vidioc_querybuf, 1719 .vidioc_querybuf = vidioc_querybuf,
1718 .vidioc_qbuf = vidioc_qbuf, 1720 .vidioc_qbuf = vidioc_qbuf,