]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[media] Add helper function for subdev event notifications
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 24 Jun 2015 16:50:29 +0000 (13:50 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 17 Jul 2015 12:45:50 +0000 (09:45 -0300)
commit8ae5640f1b4af2e903802f771ba6a8f0c3497cab
treed6f38dc36b4d82c49f66d64b170ad1036f6a27ae
parentaef5159ffc6bbf65d77af3a2e5b3d377c7c4f37a
[media] Add helper function for subdev event notifications

Add a new helper function called v4l2_subdev_notify_event() which will
deliver the specified event to both the v4l2 subdev event queue as well as
to the notify callback. The former is typically used by userspace
applications to listen to notification events while the later is used by
bridge drivers. Combining both into the same function avoids boilerplate
code in subdev drivers.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-subdev.c
include/media/v4l2-subdev.h