bcm27xx: add support for linux v5.15
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.15 / 950-0813-media-i2c-imx258-Remove-redundant-I2C-writes.patch
1 From 09431461d8c37e1436326e1584f6db5a0afe699f Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Tue, 15 Jun 2021 18:38:46 +0100
4 Subject: [PATCH] media: i2c: imx258: Remove redundant I2C writes.
5
6 Registers 0x0202 and 0x0203 are written via the control handler
7 for V4L2_CID_EXPOSURE, so are not needed from the mode lists.
8
9 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
10 ---
11 drivers/media/i2c/imx258.c | 6 ------
12 1 file changed, 6 deletions(-)
13
14 --- a/drivers/media/i2c/imx258.c
15 +++ b/drivers/media/i2c/imx258.c
16 @@ -238,8 +238,6 @@ static const struct imx258_reg mode_4208
17 { 0x034E, 0x0C },
18 { 0x034F, 0x30 },
19 { 0x0350, 0x01 },
20 - { 0x0202, 0x0C },
21 - { 0x0203, 0x46 },
22 { 0x0204, 0x00 },
23 { 0x0205, 0x00 },
24 { 0x020E, 0x01 },
25 @@ -357,8 +355,6 @@ static const struct imx258_reg mode_2104
26 { 0x034E, 0x06 },
27 { 0x034F, 0x18 },
28 { 0x0350, 0x01 },
29 - { 0x0202, 0x06 },
30 - { 0x0203, 0x2E },
31 { 0x0204, 0x00 },
32 { 0x0205, 0x00 },
33 { 0x020E, 0x01 },
34 @@ -476,8 +472,6 @@ static const struct imx258_reg mode_1048
35 { 0x034E, 0x03 },
36 { 0x034F, 0x0C },
37 { 0x0350, 0x01 },
38 - { 0x0202, 0x03 },
39 - { 0x0203, 0x42 },
40 { 0x0204, 0x00 },
41 { 0x0205, 0x00 },
42 { 0x020E, 0x01 },