1 From c14ac3e46f17ce0c1dd2f58ed1d24c1010f577f6 Mon Sep 17 00:00:00 2001
2 From: Naushir Patuck <naush@raspberrypi.com>
3 Date: Fri, 31 Mar 2023 12:02:09 +0100
4 Subject: [PATCH] drives: media: imx708: Put HFLIP and VFLIP controls
7 Create a cluster for the HVLIP and VFLIP controls so they are treated
8 as a single composite control.
10 Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
12 drivers/media/i2c/imx708.c | 7 +++++--
13 1 file changed, 5 insertions(+), 2 deletions(-)
15 --- a/drivers/media/i2c/imx708.c
16 +++ b/drivers/media/i2c/imx708.c
17 @@ -819,12 +819,14 @@ struct imx708 {
19 struct v4l2_ctrl *pixel_rate;
20 struct v4l2_ctrl *exposure;
21 - struct v4l2_ctrl *vflip;
22 - struct v4l2_ctrl *hflip;
23 struct v4l2_ctrl *vblank;
24 struct v4l2_ctrl *hblank;
25 struct v4l2_ctrl *hdr_mode;
26 struct v4l2_ctrl *link_freq;
28 + struct v4l2_ctrl *hflip;
29 + struct v4l2_ctrl *vflip;
33 const struct imx708_mode *mode;
34 @@ -1815,6 +1817,7 @@ static int imx708_init_controls(struct i
36 imx708->vflip = v4l2_ctrl_new_std(ctrl_hdlr, &imx708_ctrl_ops,
37 V4L2_CID_VFLIP, 0, 1, 1, 0);
38 + v4l2_ctrl_cluster(2, &imx708->hflip);
40 v4l2_ctrl_new_std_menu_items(ctrl_hdlr, &imx708_ctrl_ops,
41 V4L2_CID_TEST_PATTERN,