]> Gentwo Git Trees - linux/.git/commit
media: stm32: dma2d: Access v4l2_fh from file
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>
Sun, 10 Aug 2025 01:30:43 +0000 (04:30 +0300)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 13 Aug 2025 06:33:54 +0000 (08:33 +0200)
commitecdcfa456e6f6048666c7dd56a0c9b95e50312a5
tree270cd24f812cb0cf56e52ba6cd0333814e93e349
parent1b2135910747f573027b5c220f0ede98484fcf6a
media: stm32: dma2d: 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/platform/st/stm32/dma2d/dma2d.c