]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: i2c: Fix pixel array positions in ov8865
authorDaniel Scally <djrscally@gmail.com>
Wed, 2 Mar 2022 22:24:48 +0000 (22:24 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:50 +0000 (13:57 +0200)
commit449932367d2de0f5e9e916516768f95b7d8954cd
tree402013bc161f10088253cb79e610b5c990108eb2
parentf69a75cb8a98c6c487d620442c68595726a69f60
media: i2c: Fix pixel array positions in ov8865

[ Upstream commit 3d1e4228c9dd5c945a5cb621749f358766ee5777 ]

The ov8865's datasheet gives the pixel array as 3296x2528, and the
active portion as the centre 3264x2448. This makes for a top offset
of 40 and a left offset of 16, not 32 and 80.

Fixes: acd25e220921 ("media: i2c: Add .get_selection() support to ov8865")
Reported-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Signed-off-by: Daniel Scally <djrscally@gmail.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/i2c/ov8865.c