]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: cx18: Access v4l2_fh from file
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>
Sun, 10 Aug 2025 01:30:46 +0000 (04:30 +0300)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 13 Aug 2025 06:33:55 +0000 (08:33 +0200)
commit7b9eb53e8591b67f816fc4ccc57321a9e0c97004
tree7d76bb3d79c5bae850d5ad0eee5172155ab3e714
parent61699f3a2e6f3064a5816374145e3b0cbba4c552
media: cx18: 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, and from there the driver-specific structure,
from the file * in all ioctl handlers.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/pci/cx18/cx18-ioctl.c