From: Hans Verkuil Date: Sat, 8 Jan 2011 12:38:02 +0000 (-0300) Subject: [media] v4l2-fh: add v4l2_fh_is_singular X-Git-Tag: v2.6.39-rc1~86^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfddb2441f39e8c0254504516be35b854addf6fa;p=pandora-kernel.git [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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed