summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134/saa6752hs.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-05-09 14:41:41 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-06-01 06:21:26 +0200
commit31bf95fb5725013fd7d95d6d5b1e45f4c88b1f56 (patch)
tree92278ec83f7d426058f038ce868d4102b8f362a0 /drivers/media/video/saa7134/saa6752hs.c
parentV4L/DVB: saa6752hs: add g/s_mbus_fmt support (diff)
downloadlinux-31bf95fb5725013fd7d95d6d5b1e45f4c88b1f56.tar.xz
linux-31bf95fb5725013fd7d95d6d5b1e45f4c88b1f56.zip
V4L/DVB: saa7134: convert to use the new mbus API
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7134/saa6752hs.c')
-rw-r--r--drivers/media/video/saa7134/saa6752hs.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/media/video/saa7134/saa6752hs.c b/drivers/media/video/saa7134/saa6752hs.c
index 852040b6b5a6..40fd31ca7716 100644
--- a/drivers/media/video/saa7134/saa6752hs.c
+++ b/drivers/media/video/saa7134/saa6752hs.c
@@ -860,16 +860,6 @@ static int saa6752hs_g_mbus_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefm
return 0;
}
-static int saa6752hs_g_fmt(struct v4l2_subdev *sd, struct v4l2_format *f)
-{
- struct v4l2_mbus_framefmt mbus_fmt;
- int err = saa6752hs_g_mbus_fmt(sd, &mbus_fmt);
-
- f->fmt.pix.width = mbus_fmt.width;
- f->fmt.pix.height = mbus_fmt.height;
- return err;
-}
-
static int saa6752hs_s_mbus_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *f)
{
struct saa6752hs_state *h = to_state(sd);
@@ -917,16 +907,6 @@ static int saa6752hs_s_mbus_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefm
return 0;
}
-static int saa6752hs_s_fmt(struct v4l2_subdev *sd, struct v4l2_format *f)
-{
- struct v4l2_mbus_framefmt mbus_fmt;
-
- mbus_fmt.width = f->fmt.pix.width;
- mbus_fmt.height = f->fmt.pix.height;
- mbus_fmt.code = V4L2_MBUS_FMT_FIXED;
- return saa6752hs_s_mbus_fmt(sd, &mbus_fmt);
-}
-
static int saa6752hs_s_std(struct v4l2_subdev *sd, v4l2_std_id std)
{
struct saa6752hs_state *h = to_state(sd);
@@ -958,8 +938,6 @@ static const struct v4l2_subdev_core_ops saa6752hs_core_ops = {
};
static const struct v4l2_subdev_video_ops saa6752hs_video_ops = {
- .s_fmt = saa6752hs_s_fmt,
- .g_fmt = saa6752hs_g_fmt,
.s_mbus_fmt = saa6752hs_s_mbus_fmt,
.g_mbus_fmt = saa6752hs_g_mbus_fmt,
};