]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: mtk: jpeg: Access v4l2_fh from file->private_data
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>
Sun, 10 Aug 2025 01:30:23 +0000 (04:30 +0300)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 13 Aug 2025 06:33:48 +0000 (08:33 +0200)
commit966579c979a9f9702e52a63eaf42a0612ef6feb4
treeec2a9d4a08e4c4db9f87b19fb63a211e3e014fdc
parent94f55f5eead078a499e401759a36b7e2c12f4a48
media: mtk: jpeg: Access v4l2_fh from file->private_data

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>
Co-developed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c