aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/test-drivers/vimc/vimc-capture.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2025-08-10 04:30:52 +0300
committerHans Verkuil <hverkuil+cisco@kernel.org>2025-08-13 08:33:56 +0200
commit35c0ae6d7a2f9b61644c38836929a27a86bcaa1d (patch)
treeb96582c4f338ceeece6bc047369c0a9adb1509e9 /drivers/media/test-drivers/vimc/vimc-capture.c
parentmedia: v4l2-ioctl: Stop passing fh pointer to ioctl handlers (diff)
downloadlinux-35c0ae6d7a2f9b61644c38836929a27a86bcaa1d.tar.gz
linux-35c0ae6d7a2f9b61644c38836929a27a86bcaa1d.zip
media: v4l2-ioctl: Push NULL fh argument down to ioctl wrappers
As ioctl handlers do not expect a priv argument anymore, start pushing the NULL pointer down from __video_do_ioctl() to the ioctl wrappers. This paves the way to dropping the void *priv argument to ioctl handlers themselves. Changes to ioctl wrappers have been generated with the following coccinelle semantic patch: @ioctl@ identifier v4l2_ioctls; identifier ioctl; identifier fn; identifier debug; expression flags; @@ struct v4l2_ioctl_info v4l2_ioctls[] = { ..., IOCTL_INFO(ioctl, fn, debug, flags), ..., }; @depends on ioctl@ identifier ioctl.fn; identifier ops; identifier file; identifier fh; identifier arg; identifier handler; expression list args; @@ -int fn(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) +int fn(const struct v4l2_ioctl_ops *ops, struct file *file, void *arg) { <... - ops->handler(file, fh, args) + ops->handler(file, NULL, args) ...> } Manual changes have been added to handle the calls to v4l_[gs]_selection(), drop the fh argument in the v4l2_ioctl_info structure definition and in the DEFINE_V4L_STUB_FUNC() macro, and stop passing NULL to the wrappers in __video_do_ioctl() Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'drivers/media/test-drivers/vimc/vimc-capture.c')
0 files changed, 0 insertions, 0 deletions