summaryrefslogtreecommitdiff
path: root/drivers/spmi
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-01-26 02:10:01 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2023-02-08 09:08:02 +0100
commit1d59fbeb37a70f36ba3f03e41128515eee59f5fb (patch)
treea671991edcb69eed805b9fb017f22c14a03604a1 /drivers/spmi
parentd01a1c30777e46bad5e87d60bf149f647064dec5 (diff)
downloadlinux-1d59fbeb37a70f36ba3f03e41128515eee59f5fb.tar.gz
linux-1d59fbeb37a70f36ba3f03e41128515eee59f5fb.tar.bz2
linux-1d59fbeb37a70f36ba3f03e41128515eee59f5fb.zip
media: imx: imx7-media-csi: Use V4L2 subdev active state
Use the V4L2 subdev active state API to store the active format. This simplifies the driver not only by dropping the state stored in the imx7_csi structure, but also by replacing the manual lock with the state lock. The is_streaming field is now protected by the active state lock, either explicitly in .s_stream(), where the active state is locked manually, or implicitly in .set_fmt(), which is called with the state locked. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Adam Ford <aford173@gmail.com> #imx8mm-beacon-kit Acked-by: Rui Miguel Silva <rmfrfs@gmail.com> Tested-by: Martin Kepplinger <martin.kepplinger@puri.sm> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/spmi')
0 files changed, 0 insertions, 0 deletions