media: ov7740: Fix number of controls hint
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 12 Apr 2018 10:12:17 +0000 (06:12 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 23 Apr 2018 17:56:46 +0000 (13:56 -0400)
The driver has 12 controls, not 2.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/ov7740.c

index 01f5787..c9b8bec 100644 (file)
@@ -953,7 +953,7 @@ static int ov7740_init_controls(struct ov7740 *ov7740)
        struct v4l2_ctrl_handler *ctrl_hdlr = &ov7740->ctrl_handler;
        int ret;
 
-       ret = v4l2_ctrl_handler_init(ctrl_hdlr, 2);
+       ret = v4l2_ctrl_handler_init(ctrl_hdlr, 12);
        if (ret < 0)
                return ret;