media: i2c: imx290: Fix number of controls in v4l2_ctrl_handler_init
authorDavid Plowman <david.plowman@raspberrypi.com>
Thu, 4 Feb 2021 21:21:44 +0000 (21:21 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:10 +0000 (16:04 +0000)
The number is only a hint, but may as well be correct.

Fixes: 471e0029e98aa ("media: i2c: imx290: Convert HMAX setting into V4L2_CID_HBLANK")
Fixes: be0b9b7ad1c27 ("media: i2c: imx290: Add support for V4L2_CID_VBLANK")
Fixes: 8483f0d7599aa ("media: i2c: imx290: Add exposure control to the driver.")
Fixes: 9764f3459c401 ("media: i2c: imx290: Add H and V flip controls")
Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
drivers/media/i2c/imx290.c

index 1028a339beeea8e47597dd49072c0e19a2b8b876..401afc4dc67d46dbd7a97c83e690a0b4f5cf033a 100644 (file)
@@ -1324,7 +1324,7 @@ static int imx290_probe(struct i2c_client *client)
         */
        imx290_entity_init_cfg(&imx290->sd, NULL);
 
-       v4l2_ctrl_handler_init(&imx290->ctrls, 4);
+       v4l2_ctrl_handler_init(&imx290->ctrls, 9);
 
        v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops,
                          V4L2_CID_ANALOGUE_GAIN, 0, 100, 1, 0);