]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: stm32: csi: use ARRAY_SIZE to search D-PHY table
authorAlain Volmat <alain.volmat@foss.st.com>
Mon, 13 Jan 2025 08:57:55 +0000 (09:57 +0100)
committerHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Feb 2025 14:22:48 +0000 (15:22 +0100)
commita3a91b6e62be24c5df47a800c367504cb41e502b
tree5009ba3f08c2ee2feb8f741b39e2841f81817ef9
parentc631dc74b0691f94049d599024718a092030e22b
media: stm32: csi: use ARRAY_SIZE to search D-PHY table

Within stm32_csi_start, use ARRAY_SIZE loop in order to search
for the right setting.
Avoid useless init of lanes_ie / lanes_en.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/st/stm32/stm32-csi.c