summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2018-04-12 12:12:17 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-04-23 19:56:46 +0200
commit31b9cb6ecd0128a165fe2b437ef63a6fa744de7b (patch)
tree1c5a2dea4114b84bef9cb46b9c9779d823fd5b89 /drivers/media/i2c
parentmedia: omap3isp: make omap3isp_prev_csc and omap3isp_prev_rgbtorgb const (diff)
downloadlinux-31b9cb6ecd0128a165fe2b437ef63a6fa744de7b.tar.xz
linux-31b9cb6ecd0128a165fe2b437ef63a6fa744de7b.zip
media: ov7740: Fix number of controls hint
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>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r--drivers/media/i2c/ov7740.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ov7740.c b/drivers/media/i2c/ov7740.c
index 01f578785e79..c9b8bec6373f 100644
--- a/drivers/media/i2c/ov7740.c
+++ b/drivers/media/i2c/ov7740.c
@@ -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;