aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core/v4l2-ctrls-api.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2025-08-10 04:29:46 +0300
committerHans Verkuil <hverkuil+cisco@kernel.org>2025-08-13 08:33:20 +0200
commitb22ac2e4a96bcf63ecfa0b786f75d0173c8808de (patch)
tree55950397a3029442705676babcfa9a3f5e25268b /drivers/media/v4l2-core/v4l2-ctrls-api.c
parentmedia: ti: vpe: Store v4l2_fh pointer in file->private_data (diff)
downloadlinux-b22ac2e4a96bcf63ecfa0b786f75d0173c8808de.tar.gz
linux-b22ac2e4a96bcf63ecfa0b786f75d0173c8808de.zip
media: usb: hdpvr: Store v4l2_fh pointer in file->private_data
Most V4L2 drivers store the v4l2_fh pointer in file->private_data. The hdpvr driver instead stores the pointer to the driver-specific structure that embeds the v4l2_fh. Switch to storing the v4l2_fh pointer itself to standardize behaviour across drivers. This also prepares for future refactoring that depends on v4l2_fh being stored in private_data. No extensive driver refactoring is required, as file->private_data is only used to check if a file handle is the owner of the device by comparing pointer values. The private_data pointer is actually compared to a struct v4l2_fh pointer, which happens to be the first field of the hdpvr_fh structure. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-ctrls-api.c')
0 files changed, 0 insertions, 0 deletions