f62fbbe13d7e361ba948dc383469897a6cb2f3b5
[openwrt/staging/ldir.git] /
1 From 46913ee0590ee0e3f607ab189be19a4d0ce785f2 Mon Sep 17 00:00:00 2001
2 From: Naushir Patuck <naush@raspberrypi.com>
3 Date: Mon, 6 Nov 2023 09:42:37 +0000
4 Subject: [PATCH] drivers: media: imx477: Correctly set IMX477_PIXEL_RATE as a
5 r/o control
6
7 This control is meant to be read-only, mark it as such.
8
9 Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
10 ---
11 drivers/media/i2c/imx477.c | 2 ++
12 1 file changed, 2 insertions(+)
13
14 --- a/drivers/media/i2c/imx477.c
15 +++ b/drivers/media/i2c/imx477.c
16 @@ -2001,6 +2001,8 @@ static int imx477_init_controls(struct i
17 IMX477_PIXEL_RATE,
18 IMX477_PIXEL_RATE, 1,
19 IMX477_PIXEL_RATE);
20 + if (imx477->pixel_rate)
21 + imx477->pixel_rate->flags |= V4L2_CTRL_FLAG_READ_ONLY;
22
23 /* LINK_FREQ is also read only */
24 imx477->link_freq =