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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:39:45 +0000 (09:39 +0100)
commit800bb32c7636389e5c9865175fe87fe817ae1f69
tree51b9c99a115e4ee162aa36adefcd87d4115b8486
parent1da495101ef7507eb4f4b1dbec2874d740eff251
media: i2c: imx219: Split common registers from mode tables

[ Upstream commit 8508455961d5a9e8907bcfd8dcd58f19d9b6ce47 ]

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>
Stable-dep-of: ef86447e775f ("media: i2c: imx219: Fix binning for RAW8 capture")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/i2c/imx219.c