[media] media: davinci: vpif: Switch to pad-level DV operations
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 31 Jan 2014 12:04:19 +0000 (09:04 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 25 May 2014 15:42:56 +0000 (12:42 -0300)
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.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>
drivers/media/platform/davinci/vpif_capture.c
drivers/media/platform/davinci/vpif_display.c

index f3d9d9cde98c2cbb31e658d149d034337c921d40..a7ed16497903ef171caf128697900aa9700b3915 100644 (file)
@@ -1172,7 +1172,9 @@ vpif_enum_dv_timings(struct file *file, void *priv,
        if (input.capabilities != V4L2_IN_CAP_DV_TIMINGS)
                return -ENODATA;
 
-       ret = v4l2_subdev_call(ch->sd, video, enum_dv_timings, timings);
+       timings->pad = 0;
+
+       ret = v4l2_subdev_call(ch->sd, pad, enum_dv_timings, timings);
        if (ret == -ENOIOCTLCMD || ret == -ENODEV)
                return -EINVAL;
 
index 6513f5188f65ec9812e2e15fb62ff696e7bb1647..5bb085b19bcbdad375ed9bbb52ab13851580127c 100644 (file)
@@ -897,7 +897,9 @@ vpif_enum_dv_timings(struct file *file, void *priv,
        if (output.capabilities != V4L2_OUT_CAP_DV_TIMINGS)
                return -ENODATA;
 
-       ret = v4l2_subdev_call(ch->sd, video, enum_dv_timings, timings);
+       timings->pad = 0;
+
+       ret = v4l2_subdev_call(ch->sd, pad, enum_dv_timings, timings);
        if (ret == -ENOIOCTLCMD || ret == -ENODEV)
                return -EINVAL;
        return ret;