[media] v4l: subdev: Move [gs]_std operation to video ops
The g_std and s_std operations are video-related, move them to the video ops where they belong. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:

committad av
Mauro Carvalho Chehab

förälder
85ada737b9
incheckning
8774bed9ce
@@ -631,7 +631,7 @@ static int bcap_s_std(struct file *file, void *priv, v4l2_std_id std)
|
||||
if (vb2_is_busy(&bcap_dev->buffer_queue))
|
||||
return -EBUSY;
|
||||
|
||||
ret = v4l2_subdev_call(bcap_dev->sd, core, s_std, std);
|
||||
ret = v4l2_subdev_call(bcap_dev->sd, video, s_std, std);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
@@ -1065,7 +1065,7 @@ static int bcap_probe(struct platform_device *pdev)
|
||||
/* now we can probe the default state */
|
||||
if (config->inputs[0].capabilities & V4L2_IN_CAP_STD) {
|
||||
v4l2_std_id std;
|
||||
ret = v4l2_subdev_call(bcap_dev->sd, core, g_std, &std);
|
||||
ret = v4l2_subdev_call(bcap_dev->sd, video, g_std, &std);
|
||||
if (ret) {
|
||||
v4l2_err(&bcap_dev->v4l2_dev,
|
||||
"Unable to get std\n");
|
||||
|
Referens i nytt ärende
Block a user