diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2016-07-03 13:59:33 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-12 16:14:27 +0200 |
commit | d715758dfea284acf9d9d76e46ebce2d6509a78d (patch) | |
tree | 8effc8ecd206f5867967093f151b3e85c840bf5e /drivers/media/usb/cx231xx/cx231xx-417.c | |
parent | [media] via-camera: use v4l2_s_ctrl instead of the s_ctrl op (diff) | |
download | linux-d715758dfea284acf9d9d76e46ebce2d6509a78d.tar.xz linux-d715758dfea284acf9d9d76e46ebce2d6509a78d.zip |
[media] cx231xx: use v4l2_s_ctrl instead of the s_ctrl op
This op is deprecated and should not be used anymore.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/cx231xx/cx231xx-417.c')
-rw-r--r-- | drivers/media/usb/cx231xx/cx231xx-417.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/usb/cx231xx/cx231xx-417.c b/drivers/media/usb/cx231xx/cx231xx-417.c index 00da024b47a6..29d450c15f29 100644 --- a/drivers/media/usb/cx231xx/cx231xx-417.c +++ b/drivers/media/usb/cx231xx/cx231xx-417.c @@ -1570,10 +1570,12 @@ static int vidioc_s_ctrl(struct file *file, void *priv, { struct cx231xx_fh *fh = file->private_data; struct cx231xx *dev = fh->dev; + struct v4l2_subdev *sd; dprintk(3, "enter vidioc_s_ctrl()\n"); /* Update the A/V core */ - call_all(dev, core, s_ctrl, ctl); + v4l2_device_for_each_subdev(sd, &dev->v4l2_dev) + v4l2_s_ctrl(NULL, sd->ctrl_handler, ctl); dprintk(3, "exit vidioc_s_ctrl()\n"); return 0; } |