The video-level enum_dv_timings and dv_timings_cap operations are
deprecated in favor of the pad-level versions. All subdev drivers
implement the pad-level versions, switch to them.

Signed-off-by: Laurent Pinchart <laurent.pinch...@ideasonboard.com>
Reviewed-by: Hans Verkuil <hans.verk...@cisco.com>
---
 drivers/media/platform/s5p-tv/mixer_video.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/media/platform/s5p-tv/mixer_video.c 
b/drivers/media/platform/s5p-tv/mixer_video.c
index a1ce55f..fd46590 100644
--- a/drivers/media/platform/s5p-tv/mixer_video.c
+++ b/drivers/media/platform/s5p-tv/mixer_video.c
@@ -509,9 +509,11 @@ static int mxr_enum_dv_timings(struct file *file, void *fh,
        struct mxr_device *mdev = layer->mdev;
        int ret;
 
+       timings->pad = 0;
+
        /* lock protects from changing sd_out */
        mutex_lock(&mdev->mutex);
-       ret = v4l2_subdev_call(to_outsd(mdev), video, enum_dv_timings, timings);
+       ret = v4l2_subdev_call(to_outsd(mdev), pad, enum_dv_timings, timings);
        mutex_unlock(&mdev->mutex);
 
        return ret ? -EINVAL : 0;
@@ -567,9 +569,11 @@ static int mxr_dv_timings_cap(struct file *file, void *fh,
        struct mxr_device *mdev = layer->mdev;
        int ret;
 
+       cap->pad = 0;
+
        /* lock protects from changing sd_out */
        mutex_lock(&mdev->mutex);
-       ret = v4l2_subdev_call(to_outsd(mdev), video, dv_timings_cap, cap);
+       ret = v4l2_subdev_call(to_outsd(mdev), pad, dv_timings_cap, cap);
        mutex_unlock(&mdev->mutex);
 
        return ret ? -EINVAL : 0;
-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to