[media] V4L: Add v4l2_ctrl_subdev_subscribe_event() helper function
authorSylwester Nawrocki <sylvester.nawrocki@gmail.com>
Tue, 22 Jan 2013 22:00:23 +0000 (19:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Feb 2013 17:05:26 +0000 (15:05 -0200)
commit22fa4279eebc3fa4b3c3dc2b190158dbbafcda9f
tree35e661c4993be3dda8342f836c8a7d7dc9e067c6
parent4f4d14b70a29c679dd53e367b0d9b007a7117ee3
[media] V4L: Add v4l2_ctrl_subdev_subscribe_event() helper function

Add a v4l2 core helper function that can be used as the subdev
.subscribe_event handler. This allows to eliminate some boilerplate
from drivers that are only handling the control events.

Signed-off-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/v4l2-core/v4l2-ctrls.c
include/media/v4l2-ctrls.h