]> Gentwo Git Trees - linux/.git/commit
media: i2c: imx219: Replace exposure magic value with named constant
authorTarang Raval <tarang.raval@siliconsignals.io>
Fri, 31 Oct 2025 11:48:35 +0000 (17:18 +0530)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 13 Nov 2025 09:57:52 +0000 (10:57 +0100)
commit9a9ba098e7ba6b89efaddeabf0716a84a0f54c99
tree6d5d965af241db039928f12d2d0dac014bf9829d
parentdff10c7044e8777bd14bba99444ff8a69d9bb2fe
media: i2c: imx219: Replace exposure magic value with named constant

Introduce IMX219_EXPOSURE_OFFSET (4) and use it instead of the literal
'4' when computing the maximum coarse exposure. The IMX219 datasheet
specifies the maximum storage time as frame_length_lines - 4.
(Ref: Datasheet section 5-7-1)

Also fix one indentation issue for consistency.

Signed-off-by: Tarang Raval <tarang.raval@siliconsignals.io>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/imx219.c