]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: i2c: imx214: Use subdev active state
authorAndré Apitzsch <git@apitzsch.eu>
Fri, 20 Dec 2024 13:26:00 +0000 (14:26 +0100)
committerHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Feb 2025 14:22:42 +0000 (15:22 +0100)
commitb6832ff659f55f86198bb8de40f278a20bda0920
treef6c3f0b69690aaba5aa3406d4acc60c2c5febf2b
parentccc888d1698b6f42d52ddf5cecfe50fe925c95e5
media: i2c: imx214: Use subdev active state

Port the imx214 sensor driver to use the subdev active state.

Move all the format configuration to the subdevice state and simplify
the format handling, locking and initialization.

While at it, simplify imx214_start_streaming() by removing unneeded goto
statements and the corresponding error label.

Signed-off-by: André Apitzsch <git@apitzsch.eu>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/imx214.c