]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: adv7180: Use v4l2-ctrls core to handle s_ctrl locking
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Thu, 28 Aug 2025 16:06:47 +0000 (18:06 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 4 Sep 2025 08:06:13 +0000 (10:06 +0200)
commit6742cc8d7159abf4da9b1817ce8484c0386eb52f
tree5f5b229e3940e927cf1334357f71ffbcfa7a89cd
parentf18491f18077e9f914a23070b827d817ef8954b6
media: adv7180: Use v4l2-ctrls core to handle s_ctrl locking

Instead of handling the state lock ourself in .s_ctrl use the v4l2-ctrls
core to handle it for us. This will allow us later to use the unlocked
__v4l2_ctrl_handler_setup() in initialization code where the state lock
is already held.

Add a lockdep assert to demonstrate the mutex must be held when setting
controls.

There is no functional change.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/adv7180.c