Skip to content
Commit 2221c406 authored by Naushir Patuck's avatar Naushir Patuck Committed by Phil Elwell
Browse files

media: i2c: imx477: Remove internal v4l2_mbus_framefmt from the state



The only field in this struct that is used is the format code, so
replace the struct with this single field.

Save the format code in imx477_set_pad_format() when setting up a new
mode so that imx477_get_pad_format() performs the right lookup.
Otherwise, this caused a bug where the mode lookup occurred on the
12-bit table rather than the 10-bit table.

Signed-off-by: default avatarNaushir Patuck <naush@raspberrypi.com>
parent 2ffb69ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment