media: i2c: vd55g1: Use first index of mbus codes array as default
authorBenjamin Mugnier <benjamin.mugnier@foss.st.com>
Wed, 11 Jun 2025 08:48:33 +0000 (10:48 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 30 Jun 2025 07:06:21 +0000 (09:06 +0200)
commit3062098a2224a0e90b8a20f7b40063ab7ffd5b19
treecb5cc3d31b1e226a6d1872cbde19e9e705809968
parentdf2f8fd91bde57d5d5aca6adddf7e988f2e8c60e
media: i2c: vd55g1: Use first index of mbus codes array as default

Factorize code and prevent future errors in case of media bus codes
change. Rename VD55G1_DEFAULT_MODE to VD55G1_MODE_DEF to mimic other
macros and reduce vd55g1_update_img_pad_format() name to
vd55g1_update_pad_fmt() to stay within the 80 characters limit.

Signed-off-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/vd55g1.c