Commit e98bf528 authored by Paweł Anikiel's avatar Paweł Anikiel Committed by Hans Verkuil

media: tegra-video: Use pad variant of dv timing subdev calls

Use the pad variant for all (s|g|query)_dv_timings subdev calls, which
includes a pad argument.
Signed-off-by: default avatarPaweł Anikiel <panikiel@google.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent fa6d5df1
...@@ -719,11 +719,11 @@ static int tegra_channel_g_dv_timings(struct file *file, void *fh, ...@@ -719,11 +719,11 @@ static int tegra_channel_g_dv_timings(struct file *file, void *fh,
struct v4l2_subdev *subdev; struct v4l2_subdev *subdev;
subdev = tegra_channel_get_remote_source_subdev(chan); subdev = tegra_channel_get_remote_source_subdev(chan);
if (!v4l2_subdev_has_op(subdev, video, g_dv_timings)) if (!v4l2_subdev_has_op(subdev, pad, g_dv_timings))
return -ENOTTY; return -ENOTTY;
return v4l2_device_call_until_err(chan->video.v4l2_dev, 0, return v4l2_device_call_until_err(chan->video.v4l2_dev, 0,
video, g_dv_timings, timings); pad, g_dv_timings, 0, timings);
} }
static int tegra_channel_s_dv_timings(struct file *file, void *fh, static int tegra_channel_s_dv_timings(struct file *file, void *fh,
...@@ -736,7 +736,7 @@ static int tegra_channel_s_dv_timings(struct file *file, void *fh, ...@@ -736,7 +736,7 @@ static int tegra_channel_s_dv_timings(struct file *file, void *fh,
int ret; int ret;
subdev = tegra_channel_get_remote_source_subdev(chan); subdev = tegra_channel_get_remote_source_subdev(chan);
if (!v4l2_subdev_has_op(subdev, video, s_dv_timings)) if (!v4l2_subdev_has_op(subdev, pad, s_dv_timings))
return -ENOTTY; return -ENOTTY;
ret = tegra_channel_g_dv_timings(file, fh, &curr_timings); ret = tegra_channel_g_dv_timings(file, fh, &curr_timings);
...@@ -750,7 +750,7 @@ static int tegra_channel_s_dv_timings(struct file *file, void *fh, ...@@ -750,7 +750,7 @@ static int tegra_channel_s_dv_timings(struct file *file, void *fh,
return -EBUSY; return -EBUSY;
ret = v4l2_device_call_until_err(chan->video.v4l2_dev, 0, ret = v4l2_device_call_until_err(chan->video.v4l2_dev, 0,
video, s_dv_timings, timings); pad, s_dv_timings, 0, timings);
if (ret) if (ret)
return ret; return ret;
...@@ -771,11 +771,11 @@ static int tegra_channel_query_dv_timings(struct file *file, void *fh, ...@@ -771,11 +771,11 @@ static int tegra_channel_query_dv_timings(struct file *file, void *fh,
struct v4l2_subdev *subdev; struct v4l2_subdev *subdev;
subdev = tegra_channel_get_remote_source_subdev(chan); subdev = tegra_channel_get_remote_source_subdev(chan);
if (!v4l2_subdev_has_op(subdev, video, query_dv_timings)) if (!v4l2_subdev_has_op(subdev, pad, query_dv_timings))
return -ENOTTY; return -ENOTTY;
return v4l2_device_call_until_err(chan->video.v4l2_dev, 0, return v4l2_device_call_until_err(chan->video.v4l2_dev, 0,
video, query_dv_timings, timings); pad, query_dv_timings, 0, timings);
} }
static int tegra_channel_enum_dv_timings(struct file *file, void *fh, static int tegra_channel_enum_dv_timings(struct file *file, void *fh,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment