Hans Verkuil 28955a6156 media: v4l2-dev/event: add v4l2_event_wake_all()
When unregistering a V4L2 device node, make sure any filehandles
that are waiting for an event are woken up.

Add v4l2_event_wake_all() to v4l2-event.c and call it from
video_unregister_device().

Otherwise userspace might never know that a device node was removed.

[hverkuil: checkpatch: replaced 'if (vdev == NULL)' by 'if (!vdev)']

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-01-04 13:14:25 +01:00
..
2020-11-16 10:31:16 +01:00
2020-11-16 10:31:16 +01:00
2020-11-16 10:31:16 +01:00
2020-04-14 11:47:47 +02:00
2020-11-16 10:31:16 +01:00
2020-11-16 10:31:16 +01:00
2020-11-16 10:31:16 +01:00