[media] v4l2-fh: add v4l2_fh_open and v4l2_fh_release helper functions
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 8 Jan 2011 12:36:04 +0000 (09:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 19:37:57 +0000 (16:37 -0300)
commit73cb42068cff419e72456940c713ceb5efa68c2a
tree2e2cfa9f87b584774a7dc496ec6b46431bd7ce56
parentfc5602be7ca5b55174c5d6595089718779b28dfa
[media] v4l2-fh: add v4l2_fh_open and v4l2_fh_release helper functions

Add two new functions: v4l2_fh_open allocates and initializes a struct v4l2_fh
based on a struct file pointer and v4l2_fh_release releases and frees a struct
v4l2_fh.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-fh.c
include/media/v4l2-fh.h