commit | dfddb2441f39e8c0254504516be35b854addf6fa | [log] [tgz] |
---|---|---|
author | Hans Verkuil <hverkuil@xs4all.nl> | Sat Jan 08 09:38:02 2011 -0300 |
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | Tue Mar 22 16:37:58 2011 -0300 |
tree | 7fd4bade365e394e38aee0764adca945a5bf394d | |
parent | 73cb42068cff419e72456940c713ceb5efa68c2a [diff] |
[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>