projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27f3fe2
)
[media] pvrusb2: use v4l2_s_ctrl instead of the s_ctrl op
author
Hans Verkuil
<
[email protected]
>
Sun, 3 Jul 2016 11:44:27 +0000
(08:44 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Tue, 12 Jul 2016 14:12:24 +0000
(11:12 -0300)
This op is deprecated and should not be used anymore.
Signed-off-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/usb/pvrusb2/pvrusb2-hdw.c
patch
|
blob
|
history
diff --git
a/drivers/media/usb/pvrusb2/pvrusb2-hdw.c
b/drivers/media/usb/pvrusb2/pvrusb2-hdw.c
index 83e9a3eb3859564067a7aedf25a73b71c1385f7a..fe20fe4f2330d8c05c1006bc33edc39b2ac07738 100644
(file)
--- a/
drivers/media/usb/pvrusb2/pvrusb2-hdw.c
+++ b/
drivers/media/usb/pvrusb2/pvrusb2-hdw.c
@@
-2856,11
+2856,15
@@
static void pvr2_subdev_set_control(struct pvr2_hdw *hdw, int id,
const char *name, int val)
{
struct v4l2_control ctrl;
+ struct v4l2_subdev *sd;
+
pvr2_trace(PVR2_TRACE_CHIPS, "subdev v4l2 %s=%d", name, val);
memset(&ctrl, 0, sizeof(ctrl));
ctrl.id = id;
ctrl.value = val;
- v4l2_device_call_all(&hdw->v4l2_dev, 0, core, s_ctrl, &ctrl);
+
+ v4l2_device_for_each_subdev(sd, &hdw->v4l2_dev)
+ v4l2_s_ctrl(NULL, sd->ctrl_handler, &ctrl);
}
#define PVR2_SUBDEV_SET_CONTROL(hdw, id, lab) \