]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: i2c: og01a1b: Switch from .s_stream to .enable_streams/.disable_streams
authorVladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Thu, 26 Feb 2026 13:37:35 +0000 (15:37 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 11 Mar 2026 00:05:36 +0000 (01:05 +0100)
commit3a594bb454ba1ecb005f753007fa1bb5c5e68bae
tree7bc2d900d846a0864a42cd91bc5bcc00f29336b4
parent535b7f106991c7d8f0e5b8e1769bfb8b1ce9d3d6
media: i2c: og01a1b: Switch from .s_stream to .enable_streams/.disable_streams

The change allows to simplify the driver code, in particular the explicit
locking scheme for stream on/off or format update serialization can be
dropped in favour to the one provided by the V4L2 core internals.

Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
[Sakari Ailus: Fix error handling for enable_streams callback.]
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/og01a1b.c