diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-05-28 11:16:41 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:07:32 -0400 |
commit | 78b526a43561d7e5e702ba27948e422dfbc4bea1 (patch) | |
tree | 67c8b7150b51f6a82275af6f5baaedff4eaf40c0 /drivers/media/video/saa7134 | |
parent | 0e3bd2b9996dfa4105617e2369155823df6b389a (diff) |
V4L/DVB (7949): videodev: renamed the vidioc_*_fmt_* callbacks
The naming for the callbacks that handle the VIDIOC_ENUM_FMT and
VIDIOC_S/G/TRY_FMT ioctls was very confusing. Renamed it to match
the v4l2_buf_type name.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/saa7134')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-empress.c | 12 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-video.c | 46 |
2 files changed, 29 insertions, 29 deletions
diff --git a/drivers/media/video/saa7134/saa7134-empress.c b/drivers/media/video/saa7134/saa7134-empress.c index 3ae71a340822..e11700eb3e5a 100644 --- a/drivers/media/video/saa7134/saa7134-empress.c +++ b/drivers/media/video/saa7134/saa7134-empress.c | |||
@@ -208,7 +208,7 @@ static int empress_s_input(struct file *file, void *priv, unsigned int i) | |||
208 | return 0; | 208 | return 0; |
209 | } | 209 | } |
210 | 210 | ||
211 | static int empress_enum_fmt_cap(struct file *file, void *priv, | 211 | static int empress_enum_fmt_vid_cap(struct file *file, void *priv, |
212 | struct v4l2_fmtdesc *f) | 212 | struct v4l2_fmtdesc *f) |
213 | { | 213 | { |
214 | if (f->index != 0) | 214 | if (f->index != 0) |
@@ -220,7 +220,7 @@ static int empress_enum_fmt_cap(struct file *file, void *priv, | |||
220 | return 0; | 220 | return 0; |
221 | } | 221 | } |
222 | 222 | ||
223 | static int empress_g_fmt_cap(struct file *file, void *priv, | 223 | static int empress_g_fmt_vid_cap(struct file *file, void *priv, |
224 | struct v4l2_format *f) | 224 | struct v4l2_format *f) |
225 | { | 225 | { |
226 | struct saa7134_dev *dev = file->private_data; | 226 | struct saa7134_dev *dev = file->private_data; |
@@ -233,7 +233,7 @@ static int empress_g_fmt_cap(struct file *file, void *priv, | |||
233 | return 0; | 233 | return 0; |
234 | } | 234 | } |
235 | 235 | ||
236 | static int empress_s_fmt_cap(struct file *file, void *priv, | 236 | static int empress_s_fmt_vid_cap(struct file *file, void *priv, |
237 | struct v4l2_format *f) | 237 | struct v4l2_format *f) |
238 | { | 238 | { |
239 | struct saa7134_dev *dev = file->private_data; | 239 | struct saa7134_dev *dev = file->private_data; |
@@ -348,9 +348,9 @@ static struct video_device saa7134_empress_template = | |||
348 | .minor = -1, | 348 | .minor = -1, |
349 | 349 | ||
350 | .vidioc_querycap = empress_querycap, | 350 | .vidioc_querycap = empress_querycap, |
351 | .vidioc_enum_fmt_cap = empress_enum_fmt_cap, | 351 | .vidioc_enum_fmt_vid_cap = empress_enum_fmt_vid_cap, |
352 | .vidioc_s_fmt_cap = empress_s_fmt_cap, | 352 | .vidioc_s_fmt_vid_cap = empress_s_fmt_vid_cap, |
353 | .vidioc_g_fmt_cap = empress_g_fmt_cap, | 353 | .vidioc_g_fmt_vid_cap = empress_g_fmt_vid_cap, |
354 | .vidioc_reqbufs = empress_reqbufs, | 354 | .vidioc_reqbufs = empress_reqbufs, |
355 | .vidioc_querybuf = empress_querybuf, | 355 | .vidioc_querybuf = empress_querybuf, |
356 | .vidioc_qbuf = empress_qbuf, | 356 | .vidioc_qbuf = empress_qbuf, |
diff --git a/drivers/media/video/saa7134/saa7134-video.c b/drivers/media/video/saa7134/saa7134-video.c index 48e1a01718ec..bba23219ce94 100644 --- a/drivers/media/video/saa7134/saa7134-video.c +++ b/drivers/media/video/saa7134/saa7134-video.c | |||
@@ -1496,7 +1496,7 @@ static int video_mmap(struct file *file, struct vm_area_struct * vma) | |||
1496 | 1496 | ||
1497 | /* ------------------------------------------------------------------ */ | 1497 | /* ------------------------------------------------------------------ */ |
1498 | 1498 | ||
1499 | static int saa7134_try_get_set_fmt_vbi(struct file *file, void *priv, | 1499 | static int saa7134_try_get_set_fmt_vbi_cap(struct file *file, void *priv, |
1500 | struct v4l2_format *f) | 1500 | struct v4l2_format *f) |
1501 | { | 1501 | { |
1502 | struct saa7134_fh *fh = priv; | 1502 | struct saa7134_fh *fh = priv; |
@@ -1516,7 +1516,7 @@ static int saa7134_try_get_set_fmt_vbi(struct file *file, void *priv, | |||
1516 | return 0; | 1516 | return 0; |
1517 | } | 1517 | } |
1518 | 1518 | ||
1519 | static int saa7134_g_fmt_cap(struct file *file, void *priv, | 1519 | static int saa7134_g_fmt_vid_cap(struct file *file, void *priv, |
1520 | struct v4l2_format *f) | 1520 | struct v4l2_format *f) |
1521 | { | 1521 | { |
1522 | struct saa7134_fh *fh = priv; | 1522 | struct saa7134_fh *fh = priv; |
@@ -1532,7 +1532,7 @@ static int saa7134_g_fmt_cap(struct file *file, void *priv, | |||
1532 | return 0; | 1532 | return 0; |
1533 | } | 1533 | } |
1534 | 1534 | ||
1535 | static int saa7134_g_fmt_overlay(struct file *file, void *priv, | 1535 | static int saa7134_g_fmt_vid_overlay(struct file *file, void *priv, |
1536 | struct v4l2_format *f) | 1536 | struct v4l2_format *f) |
1537 | { | 1537 | { |
1538 | struct saa7134_fh *fh = priv; | 1538 | struct saa7134_fh *fh = priv; |
@@ -1546,7 +1546,7 @@ static int saa7134_g_fmt_overlay(struct file *file, void *priv, | |||
1546 | return 0; | 1546 | return 0; |
1547 | } | 1547 | } |
1548 | 1548 | ||
1549 | static int saa7134_try_fmt_cap(struct file *file, void *priv, | 1549 | static int saa7134_try_fmt_vid_cap(struct file *file, void *priv, |
1550 | struct v4l2_format *f) | 1550 | struct v4l2_format *f) |
1551 | { | 1551 | { |
1552 | struct saa7134_fh *fh = priv; | 1552 | struct saa7134_fh *fh = priv; |
@@ -1597,7 +1597,7 @@ static int saa7134_try_fmt_cap(struct file *file, void *priv, | |||
1597 | return 0; | 1597 | return 0; |
1598 | } | 1598 | } |
1599 | 1599 | ||
1600 | static int saa7134_try_fmt_overlay(struct file *file, void *priv, | 1600 | static int saa7134_try_fmt_vid_overlay(struct file *file, void *priv, |
1601 | struct v4l2_format *f) | 1601 | struct v4l2_format *f) |
1602 | { | 1602 | { |
1603 | struct saa7134_fh *fh = priv; | 1603 | struct saa7134_fh *fh = priv; |
@@ -1611,13 +1611,13 @@ static int saa7134_try_fmt_overlay(struct file *file, void *priv, | |||
1611 | return verify_preview(dev, &f->fmt.win); | 1611 | return verify_preview(dev, &f->fmt.win); |
1612 | } | 1612 | } |
1613 | 1613 | ||
1614 | static int saa7134_s_fmt_cap(struct file *file, void *priv, | 1614 | static int saa7134_s_fmt_vid_cap(struct file *file, void *priv, |
1615 | struct v4l2_format *f) | 1615 | struct v4l2_format *f) |
1616 | { | 1616 | { |
1617 | struct saa7134_fh *fh = priv; | 1617 | struct saa7134_fh *fh = priv; |
1618 | int err; | 1618 | int err; |
1619 | 1619 | ||
1620 | err = saa7134_try_fmt_cap(file, priv, f); | 1620 | err = saa7134_try_fmt_vid_cap(file, priv, f); |
1621 | if (0 != err) | 1621 | if (0 != err) |
1622 | return err; | 1622 | return err; |
1623 | 1623 | ||
@@ -1628,7 +1628,7 @@ static int saa7134_s_fmt_cap(struct file *file, void *priv, | |||
1628 | return 0; | 1628 | return 0; |
1629 | } | 1629 | } |
1630 | 1630 | ||
1631 | static int saa7134_s_fmt_overlay(struct file *file, void *priv, | 1631 | static int saa7134_s_fmt_vid_overlay(struct file *file, void *priv, |
1632 | struct v4l2_format *f) | 1632 | struct v4l2_format *f) |
1633 | { | 1633 | { |
1634 | struct saa7134_fh *fh = priv; | 1634 | struct saa7134_fh *fh = priv; |
@@ -2028,7 +2028,7 @@ static int saa7134_s_priority(struct file *file, void *f, | |||
2028 | return v4l2_prio_change(&dev->prio, &fh->prio, prio); | 2028 | return v4l2_prio_change(&dev->prio, &fh->prio, prio); |
2029 | } | 2029 | } |
2030 | 2030 | ||
2031 | static int saa7134_enum_fmt_cap(struct file *file, void *priv, | 2031 | static int saa7134_enum_fmt_vid_cap(struct file *file, void *priv, |
2032 | struct v4l2_fmtdesc *f) | 2032 | struct v4l2_fmtdesc *f) |
2033 | { | 2033 | { |
2034 | if (f->index >= FORMATS) | 2034 | if (f->index >= FORMATS) |
@@ -2042,7 +2042,7 @@ static int saa7134_enum_fmt_cap(struct file *file, void *priv, | |||
2042 | return 0; | 2042 | return 0; |
2043 | } | 2043 | } |
2044 | 2044 | ||
2045 | static int saa7134_enum_fmt_overlay(struct file *file, void *priv, | 2045 | static int saa7134_enum_fmt_vid_overlay(struct file *file, void *priv, |
2046 | struct v4l2_fmtdesc *f) | 2046 | struct v4l2_fmtdesc *f) |
2047 | { | 2047 | { |
2048 | if (saa7134_no_overlay > 0) { | 2048 | if (saa7134_no_overlay > 0) { |
@@ -2061,7 +2061,7 @@ static int saa7134_enum_fmt_overlay(struct file *file, void *priv, | |||
2061 | return 0; | 2061 | return 0; |
2062 | } | 2062 | } |
2063 | 2063 | ||
2064 | static int saa7134_enum_fmt_vbi(struct file *file, void *priv, | 2064 | static int saa7134_enum_fmt_vbi_cap(struct file *file, void *priv, |
2065 | struct v4l2_fmtdesc *f) | 2065 | struct v4l2_fmtdesc *f) |
2066 | { | 2066 | { |
2067 | if (0 != f->index) | 2067 | if (0 != f->index) |
@@ -2348,18 +2348,18 @@ struct video_device saa7134_video_template = | |||
2348 | .fops = &video_fops, | 2348 | .fops = &video_fops, |
2349 | .minor = -1, | 2349 | .minor = -1, |
2350 | .vidioc_querycap = saa7134_querycap, | 2350 | .vidioc_querycap = saa7134_querycap, |
2351 | .vidioc_enum_fmt_cap = saa7134_enum_fmt_cap, | 2351 | .vidioc_enum_fmt_vid_cap = saa7134_enum_fmt_vid_cap, |
2352 | .vidioc_g_fmt_cap = saa7134_g_fmt_cap, | 2352 | .vidioc_g_fmt_vid_cap = saa7134_g_fmt_vid_cap, |
2353 | .vidioc_try_fmt_cap = saa7134_try_fmt_cap, | 2353 | .vidioc_try_fmt_vid_cap = saa7134_try_fmt_vid_cap, |
2354 | .vidioc_s_fmt_cap = saa7134_s_fmt_cap, | 2354 | .vidioc_s_fmt_vid_cap = saa7134_s_fmt_vid_cap, |
2355 | .vidioc_enum_fmt_overlay = saa7134_enum_fmt_overlay, | 2355 | .vidioc_enum_fmt_vid_overlay = saa7134_enum_fmt_vid_overlay, |
2356 | .vidioc_g_fmt_overlay = saa7134_g_fmt_overlay, | 2356 | .vidioc_g_fmt_vid_overlay = saa7134_g_fmt_vid_overlay, |
2357 | .vidioc_try_fmt_overlay = saa7134_try_fmt_overlay, | 2357 | .vidioc_try_fmt_vid_overlay = saa7134_try_fmt_vid_overlay, |
2358 | .vidioc_s_fmt_overlay = saa7134_s_fmt_overlay, | 2358 | .vidioc_s_fmt_vid_overlay = saa7134_s_fmt_vid_overlay, |
2359 | .vidioc_enum_fmt_vbi = saa7134_enum_fmt_vbi, | 2359 | .vidioc_enum_fmt_vbi_cap = saa7134_enum_fmt_vbi_cap, |
2360 | .vidioc_g_fmt_vbi = saa7134_try_get_set_fmt_vbi, | 2360 | .vidioc_g_fmt_vbi_cap = saa7134_try_get_set_fmt_vbi_cap, |
2361 | .vidioc_try_fmt_vbi = saa7134_try_get_set_fmt_vbi, | 2361 | .vidioc_try_fmt_vbi_cap = saa7134_try_get_set_fmt_vbi_cap, |
2362 | .vidioc_s_fmt_vbi = saa7134_try_get_set_fmt_vbi, | 2362 | .vidioc_s_fmt_vbi_cap = saa7134_try_get_set_fmt_vbi_cap, |
2363 | .vidioc_g_audio = saa7134_g_audio, | 2363 | .vidioc_g_audio = saa7134_g_audio, |
2364 | .vidioc_s_audio = saa7134_s_audio, | 2364 | .vidioc_s_audio = saa7134_s_audio, |
2365 | .vidioc_cropcap = saa7134_cropcap, | 2365 | .vidioc_cropcap = saa7134_cropcap, |