V4L/DVB: tvp5150: remove obsolete g/s_fmt ops
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
ea01b11a07
commit
468df208e8
@@ -934,17 +934,6 @@ static int tvp5150_s_sliced_fmt(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_f
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tvp5150_s_fmt(struct v4l2_subdev *sd, struct v4l2_format *fmt)
|
|
||||||
{
|
|
||||||
switch (fmt->type) {
|
|
||||||
case V4L2_BUF_TYPE_SLICED_VBI_CAPTURE:
|
|
||||||
return tvp5150_s_sliced_fmt(sd, &fmt->fmt.sliced);
|
|
||||||
|
|
||||||
default:
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static int tvp5150_g_sliced_fmt(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_format *svbi)
|
static int tvp5150_g_sliced_fmt(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_format *svbi)
|
||||||
{
|
{
|
||||||
int i, mask = 0;
|
int i, mask = 0;
|
||||||
@@ -960,13 +949,6 @@ static int tvp5150_g_sliced_fmt(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_f
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tvp5150_g_fmt(struct v4l2_subdev *sd, struct v4l2_format *fmt)
|
|
||||||
{
|
|
||||||
if (fmt->type != V4L2_BUF_TYPE_SLICED_VBI_CAPTURE)
|
|
||||||
return -EINVAL;
|
|
||||||
return tvp5150_g_sliced_fmt(sd, &fmt->fmt.sliced);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int tvp5150_g_chip_ident(struct v4l2_subdev *sd,
|
static int tvp5150_g_chip_ident(struct v4l2_subdev *sd,
|
||||||
struct v4l2_dbg_chip_ident *chip)
|
struct v4l2_dbg_chip_ident *chip)
|
||||||
{
|
{
|
||||||
@@ -1054,8 +1036,6 @@ static const struct v4l2_subdev_tuner_ops tvp5150_tuner_ops = {
|
|||||||
|
|
||||||
static const struct v4l2_subdev_video_ops tvp5150_video_ops = {
|
static const struct v4l2_subdev_video_ops tvp5150_video_ops = {
|
||||||
.s_routing = tvp5150_s_routing,
|
.s_routing = tvp5150_s_routing,
|
||||||
.g_fmt = tvp5150_g_fmt,
|
|
||||||
.s_fmt = tvp5150_s_fmt,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct v4l2_subdev_vbi_ops tvp5150_vbi_ops = {
|
static const struct v4l2_subdev_vbi_ops tvp5150_vbi_ops = {
|
||||||
|
Reference in New Issue
Block a user