media: ov2740: Use sub-device active state
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 7 Sep 2023 12:10:03 +0000 (15:10 +0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Sat, 7 Oct 2023 08:55:48 +0000 (10:55 +0200)
commit289c25923ecdde90050a0cb3904f9295ca68b425
treebe08fb4d73bbba524c9037093aecc6b2aef3f4b1
parent1cfe77a541a5044a061afd4f7935f504cc4d4c48
media: ov2740: Use sub-device active state

Use sub-device active state. Rely on control handler lock to serialise
access to the active state. Also clean up locking on s_stream handler.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/ov2740.c