Laurent Pinchart 76c001287f media: i2c: imx290: Simplify imx290_set_data_lanes()
There's no need to check for an incorrect number of data lanes in
imx290_set_data_lanes() as the value is validated at probe() time. Drop
the check.

The PHY_LANE_NUM and CSI_LANE_MODE registers are programmed with a value
equal to the number of lanes minus one. Compute it instead of handling
it in the switch/case.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2023-02-03 15:05:50 +01:00
..
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-11-25 08:46:29 +00:00
2021-02-01 10:03:45 +01:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-12-07 17:58:47 +01:00
2022-12-07 17:58:47 +01:00
2022-10-22 15:30:15 -07:00
2022-08-16 12:46:26 +02:00
2022-10-27 14:48:55 +03:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-10-28 11:31:28 +03:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-10-22 15:30:15 -07:00
2022-08-16 12:46:26 +02:00