Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] vivi: use v4l2_ctrl_subscribe_event

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
6d6604fa a26243b0

+1 -12
+1 -12
drivers/media/video/vivi.c
··· 1001 1001 return 0; 1002 1002 } 1003 1003 1004 - static int vidioc_subscribe_event(struct v4l2_fh *fh, 1005 - struct v4l2_event_subscription *sub) 1006 - { 1007 - switch (sub->type) { 1008 - case V4L2_EVENT_CTRL: 1009 - return v4l2_event_subscribe(fh, sub, 0); 1010 - default: 1011 - return -EINVAL; 1012 - } 1013 - } 1014 - 1015 1004 /* --- controls ---------------------------------------------- */ 1016 1005 1017 1006 static int vivi_g_volatile_ctrl(struct v4l2_ctrl *ctrl) ··· 1192 1203 .vidioc_streamon = vidioc_streamon, 1193 1204 .vidioc_streamoff = vidioc_streamoff, 1194 1205 .vidioc_log_status = v4l2_ctrl_log_status, 1195 - .vidioc_subscribe_event = vidioc_subscribe_event, 1206 + .vidioc_subscribe_event = v4l2_ctrl_subscribe_event, 1196 1207 .vidioc_unsubscribe_event = v4l2_event_unsubscribe, 1197 1208 }; 1198 1209