summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorLuca Ceresoli <luca@lucaceresoli.net>2018-11-27 03:34:44 -0500
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-12-05 06:35:20 -0500
commit82f5b507c0cf35e46f4bad852090a408aa35eb2f (patch)
tree54538dccf64dcc7f40e2c33809d82eea2c041542 /drivers/media
parentcea8c0077d6cf3a0cea2f18a8e914af78d46b2ff (diff)
downloadlinux-82f5b507c0cf35e46f4bad852090a408aa35eb2f.tar.bz2
media: imx274: declare the correct number of controls
v4l2_ctrl_handler_init() expects a hint of how many controls this handler is expected to refer to. Since this number here is always 4, let's pass exactly 4. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/i2c/imx274.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/imx274.c b/drivers/media/i2c/imx274.c
index 95a0e7d9851a..5fac7fd32634 100644
--- a/drivers/media/i2c/imx274.c
+++ b/drivers/media/i2c/imx274.c
@@ -1904,7 +1904,7 @@ static int imx274_probe(struct i2c_client *client,
imx274_reset(imx274, 1);
/* initialize controls */
- ret = v4l2_ctrl_handler_init(&imx274->ctrls.handler, 2);
+ ret = v4l2_ctrl_handler_init(&imx274->ctrls.handler, 4);
if (ret < 0) {
dev_err(&client->dev,
"%s : ctrl handler init Failed\n", __func__);