linux-imx/drivers/media/i2c/ox05b1s
Mirela Rabulea 23988dfd99 LF-13588-1: media: ox05b1s: Use centrally managed subdev active state
Remove format member from sensor structure, the sensor subdevice will
not track the state internally, instead it will use the managed
subdev active state, in ox05b1s_set_fmt for example.

Remove ox05b1s_get_fmt and use v4l2_subdev_get_fmt instead.

Use v4l2_subdev_init_finalize to opt-in for managed state, use the same
sensor lock, and initialize it sooner.

Do not lock in set_fmt and get_selection, as these ioctls, among others,
are called from a wrapper that already takes the lock if the subdev
uses active state, see DEFINE_STATE_WRAPPER.

Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
2024-10-13 10:52:58 +03:00
..
Kconfig
Makefile
os08a20_regs_4k_hdr.h
os08a20_regs_4k.h
os08a20_regs_1080p.h
ox05b1s_mipi.c LF-13588-1: media: ox05b1s: Use centrally managed subdev active state 2024-10-13 10:52:58 +03:00
ox05b1s_regs_5mp.h