forked from Minki/linux
[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>
This commit is contained in:
parent
7025e521b1
commit
b6fc2eb965
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user