bcm27xx: 6.1: add kernel patches
[openwrt/staging/stintel.git] / target / linux / bcm27xx / patches-6.1 / 950-0617-media-i2c-imx290-Specify-HMAX-values-in-decimal.patch
1 From c1461dc7f90c1789418e493df0fb866ebe74151a Mon Sep 17 00:00:00 2001
2 From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
3 Date: Sun, 16 Oct 2022 09:15:10 +0300
4 Subject: [PATCH] media: i2c: imx290: Specify HMAX values in decimal
5
6 Upstream commit 72825bc6f7f5.
7
8 The HMAX value specifies the total line length in pixels. It's thus more
9 readable in decimal than hexadecimal. Fix it.
10
11 Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
12 Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
13 ---
14 drivers/media/i2c/imx290.c | 8 ++++----
15 1 file changed, 4 insertions(+), 4 deletions(-)
16
17 --- a/drivers/media/i2c/imx290.c
18 +++ b/drivers/media/i2c/imx290.c
19 @@ -307,7 +307,7 @@ static const struct imx290_mode imx290_m
20 {
21 .width = 1920,
22 .height = 1080,
23 - .hmax = 0x1130,
24 + .hmax = 4400,
25 .link_freq_index = FREQ_INDEX_1080P,
26 .data = imx290_1080p_settings,
27 .data_size = ARRAY_SIZE(imx290_1080p_settings),
28 @@ -315,7 +315,7 @@ static const struct imx290_mode imx290_m
29 {
30 .width = 1280,
31 .height = 720,
32 - .hmax = 0x19c8,
33 + .hmax = 6600,
34 .link_freq_index = FREQ_INDEX_720P,
35 .data = imx290_720p_settings,
36 .data_size = ARRAY_SIZE(imx290_720p_settings),
37 @@ -326,7 +326,7 @@ static const struct imx290_mode imx290_m
38 {
39 .width = 1920,
40 .height = 1080,
41 - .hmax = 0x0898,
42 + .hmax = 2200,
43 .link_freq_index = FREQ_INDEX_1080P,
44 .data = imx290_1080p_settings,
45 .data_size = ARRAY_SIZE(imx290_1080p_settings),
46 @@ -334,7 +334,7 @@ static const struct imx290_mode imx290_m
47 {
48 .width = 1280,
49 .height = 720,
50 - .hmax = 0x0ce4,
51 + .hmax = 3300,
52 .link_freq_index = FREQ_INDEX_720P,
53 .data = imx290_720p_settings,
54 .data_size = ARRAY_SIZE(imx290_720p_settings),