]> git.baikalelectronics.ru Git - kernel.git/commit
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:33:42 +0000 (09:33 +0100)
commitdc6f9dd6eb82a36c22824bc87e2e322167b2a88f
treeb58683ffc37646259ca5d8cfd57add41e93a8cb5
parent2d57e7944c5d85c732bf1a3ad2273d10ce61892b
media: i2c: imx219: Split common registers from mode tables

[ Upstream commit 6816630da48cb1f907229ee9db8b41ff223f8012 ]

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