v4l: vsp1: sru: Fix the intensity control default value
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 21 May 2014 22:00:05 +0000 (19:00 -0300)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:15:39 +0000 (11:15 +0100)
commit864f8624f3fdd5a0b50b06f105019dbdeb0583ec
treec34ec45e771646187ae149b5b11e03a0339c2b25
parent6a87a0c6c62bf2541312627de1ac34e68c29561c
v4l: vsp1: sru: Fix the intensity control default value

The default value isn't set and defaults to 0, which isn't in the 1-6
min-max range. Fix it by setting the default value to 1.

This shoud have been caught when checking the control handler error
field at initialization time, but the check was missing. Add it.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
(cherry picked from commit a1606102dafe6942905e97a88ceea9a60e1a2c7d)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/media/platform/vsp1/vsp1_sru.c