diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-05-14 14:51:22 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-11 16:05:43 -0300 |
commit | b6fc2eb965726bf31bbbca6e7a833f98c03a6ce2 (patch) | |
tree | 9890e61f3c34bd1d11dc1699e2e30885d6210c7b /drivers/media/video/gspca/pac7311.c | |
parent | 7025e521b1b068af8a47a7625335a605bbd4d7ea (diff) | |
download | op-kernel-dev-b6fc2eb965726bf31bbbca6e7a833f98c03a6ce2.zip op-kernel-dev-b6fc2eb965726bf31bbbca6e7a833f98c03a6ce2.tar.gz |
[media] gspca_pac7311: Correct number of controls
This avoids the need for a re-alloc during init.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/pac7311.c')
-rw-r--r-- | drivers/media/video/gspca/pac7311.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/pac7311.c b/drivers/media/video/gspca/pac7311.c index 2cb7d95..115da16 100644 --- a/drivers/media/video/gspca/pac7311.c +++ b/drivers/media/video/gspca/pac7311.c @@ -418,7 +418,7 @@ static int sd_init_controls(struct gspca_dev *gspca_dev) struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; gspca_dev->vdev.ctrl_handler = hdl; - v4l2_ctrl_handler_init(hdl, 4); + v4l2_ctrl_handler_init(hdl, 5); sd->contrast = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, V4L2_CID_CONTRAST, 0, 15, 1, 7); |