]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: camss: Replace .open() file operation with v4l2_fh_open()
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sun, 10 Aug 2025 01:30:01 +0000 (04:30 +0300)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 13 Aug 2025 06:33:32 +0000 (08:33 +0200)
commitcaa5c3439af793a727a9dcb69b1fdec7ece66302
tree8b0f3819ea1edac5c201d32fef78d2f7b6f61eaa
parentff9c50a4a92ac72e42c132ef08bd50b5fa933b68
media: camss: Replace .open() file operation with v4l2_fh_open()

The custom video_open() function in the camss driver open-codes the
v4l2_fh_open() helper, with an additional mutex that protects the whole
function. Given that the function does not modify any data guarded by
the lock, there's no need for using the mutex and the function can be
replaced by v4l2_fh_open().

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/qcom/camss/camss-video.c