diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2014-01-31 06:51:18 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-05-25 11:42:10 -0400 |
commit | 307d3bd4975b1621624a0414a9c328f9b2deae10 (patch) | |
tree | 9b0e042be226378c4f68edeced3f6451c97c8647 | |
parent | 553bca82ed3838fe68d9436e548b5917b6caadc4 (diff) |
[media] tvp7002: Add pad-level DV timings operations
The video enum_dv_timings operation is deprecated. Implement the
pad-level version of the operation to prepare for the removal of the
video version.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r-- | drivers/media/i2c/tvp7002.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/i2c/tvp7002.c b/drivers/media/i2c/tvp7002.c index c4e1e2cb3094..019dbcf505bf 100644 --- a/drivers/media/i2c/tvp7002.c +++ b/drivers/media/i2c/tvp7002.c | |||
@@ -833,6 +833,9 @@ static int tvp7002_log_status(struct v4l2_subdev *sd) | |||
833 | static int tvp7002_enum_dv_timings(struct v4l2_subdev *sd, | 833 | static int tvp7002_enum_dv_timings(struct v4l2_subdev *sd, |
834 | struct v4l2_enum_dv_timings *timings) | 834 | struct v4l2_enum_dv_timings *timings) |
835 | { | 835 | { |
836 | if (timings->pad != 0) | ||
837 | return -EINVAL; | ||
838 | |||
836 | /* Check requested format index is within range */ | 839 | /* Check requested format index is within range */ |
837 | if (timings->index >= NUM_TIMINGS) | 840 | if (timings->index >= NUM_TIMINGS) |
838 | return -EINVAL; | 841 | return -EINVAL; |
@@ -938,6 +941,7 @@ static const struct v4l2_subdev_pad_ops tvp7002_pad_ops = { | |||
938 | .enum_mbus_code = tvp7002_enum_mbus_code, | 941 | .enum_mbus_code = tvp7002_enum_mbus_code, |
939 | .get_fmt = tvp7002_get_pad_format, | 942 | .get_fmt = tvp7002_get_pad_format, |
940 | .set_fmt = tvp7002_set_pad_format, | 943 | .set_fmt = tvp7002_set_pad_format, |
944 | .enum_dv_timings = tvp7002_enum_dv_timings, | ||
941 | }; | 945 | }; |
942 | 946 | ||
943 | /* V4L2 top level operation handlers */ | 947 | /* V4L2 top level operation handlers */ |