media: i2c: imx219: Split common registers from mode tables
authorAdam Ford <aford173@gmail.com>
Tue, 20 Dec 2022 12:07:53 +0000 (13:07 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 3 Feb 2023 13:55:23 +0000 (14:55 +0100)
commit8508455961d5a9e8907bcfd8dcd58f19d9b6ce47
tree96b6476f91bf5d1f112763b39a92c4d88ef65005
parent5ad2e46030ad97de7fdbdaf63bb1af45c7caf3dd
media: i2c: imx219: Split common registers from mode tables

There are four modes, and each mode has a table of registers.
Some of the registers are common to all modes, so create new
tables for these common registers to reduce duplicate code.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/imx219.c