bcm27xx: add support for linux v5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.15 / 950-0390-media-i2c-ov5647-Correct-pixel-array-offset.patch
1 From 148a9f64b942cceb1ce155dfbc2fe893669de198 Mon Sep 17 00:00:00 2001
2 From: David Plowman <david.plowman@raspberrypi.com>
3 Date: Tue, 11 May 2021 12:52:26 +0100
4 Subject: [PATCH] media: i2c: ov5647: Correct pixel array offset
5
6 The top offset in the pixel array is actually 6 (see page 3-1 of the
7 OV5647 data sheet).
8
9 Fixes: f2f7ad5ce5e52 ("media: i2c: ov5647: Selection compliance fixes")
10 Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
11 ---
12 drivers/media/i2c/ov5647.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 --- a/drivers/media/i2c/ov5647.c
16 +++ b/drivers/media/i2c/ov5647.c
17 @@ -68,7 +68,7 @@
18 #define OV5647_NATIVE_HEIGHT 1956U
19
20 #define OV5647_PIXEL_ARRAY_LEFT 16U
21 -#define OV5647_PIXEL_ARRAY_TOP 16U
22 +#define OV5647_PIXEL_ARRAY_TOP 6U
23 #define OV5647_PIXEL_ARRAY_WIDTH 2592U
24 #define OV5647_PIXEL_ARRAY_HEIGHT 1944U
25