aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/meye.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2011-01-08 09:38:02 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-22 16:37:58 -0300
commitdfddb2441f39e8c0254504516be35b854addf6fa (patch)
tree7fd4bade365e394e38aee0764adca945a5bf394d /drivers/media/video/meye.c
parent[media] v4l2-fh: add v4l2_fh_open and v4l2_fh_release helper functions (diff)
downloadlinux-dev-dfddb2441f39e8c0254504516be35b854addf6fa.tar.xz
linux-dev-dfddb2441f39e8c0254504516be35b854addf6fa.zip
[media] v4l2-fh: add v4l2_fh_is_singular
Several drivers need to do something when the first filehandle is opened or the last filehandle is closed. Most implement some use count mechanism, but if they use v4l2_fh, then you can also just check if this is the only filehandle for the device node. A simple helper function can do this. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/meye.c')
0 files changed, 0 insertions, 0 deletions