summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2025-08-10 04:29:52 +0300
committerHans Verkuil <hverkuil+cisco@kernel.org>2025-08-13 09:33:26 +0300
commit72517d9f76fe3b14a5f73ce5491e722c229a14bf (patch)
tree418c9662717ac07bf33d304ea3f164ed9e4595a0 /include
parent8003313d388f11cfcaaa88a731f113afda171887 (diff)
downloadlinux-72517d9f76fe3b14a5f73ce5491e722c229a14bf.tar.xz
media: nvidia: tegra-vde: Replace file->private_data access
Accessing file->private_data manually to retrieve the v4l2_fh pointer is error-prone, as the field is a void * and will happily cast implicitly to any pointer type. The tegra-vde driver accesses file->private_data in the tegra_open() function, right after setting the field to &ctx->fh. Replace the accesses with usage of &ctx->fh. No functional change is intended, this only paves the way to remove direct accesses to file->private_data and make V4L2 drivers safer. Other accesses to the field will be addressed separately. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions