]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: s3c-camif: Access v4l2_fh from file
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>
Sun, 10 Aug 2025 01:30:36 +0000 (04:30 +0300)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 13 Aug 2025 06:33:52 +0000 (08:33 +0200)
commit223171b22e866ede054c9949b0a83ab2e5ae8951
tree2b45e1071ed9ac6a80e54f487367daeef7278578
parent3aafbde78bc67ae1321645a91f092da60dea205a
media: s3c-camif: Access v4l2_fh from file

The v4l2_fh associated with an open file handle is now guaranteed
to be available in file->private_data, initialised by v4l2_fh_add().

Access the v4l2_fh from the file * in all ioctl handlers. The v4l2_fh
pointer is used to keep track of which user owns the streaming queue.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/samsung/s3c-camif/camif-capture.c