]> Gentwo Git Trees - linux/.git/commit
media: uvcvideo: Drop stream->mutex
authorRicardo Ribalda <ribalda@chromium.org>
Fri, 25 Jul 2025 13:12:48 +0000 (13:12 +0000)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Sat, 13 Sep 2025 16:34:59 +0000 (18:34 +0200)
commit97b6ff8603f2bdd8863a4d9b8b5432e8f3272b64
tree5e791520275cd92c722ff43cc9eb32225e1e9142
parent1ab40529ad52f339975886a6a9e815dfdcb8d011
media: uvcvideo: Drop stream->mutex

Since commit c93d73c9c2cf ("media: uvcvideo: Use vb2 ioctl and fop
helpers"), the IOCTLs are serialized. Due to this there is no more need
to protect ctrl, cur_format or cur_frame from concurrent access.

Drop stream->mutex after thanking it for years of good service.

Use this opportunity to do fix some CodeStyle.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans de Goede <hansg@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/usb/uvc/uvc_driver.c
drivers/media/usb/uvc/uvc_metadata.c
drivers/media/usb/uvc/uvc_v4l2.c
drivers/media/usb/uvc/uvcvideo.h