greybus: lights: default value for v4l2 flash controls
authorRui Miguel Silva <rui.silva@linaro.org>
Thu, 3 Dec 2015 16:07:49 +0000 (16:07 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 3 Dec 2015 23:33:34 +0000 (15:33 -0800)
commit1700507d8c1b3578152c8afa8062a66e78e3a4bb
treeff60c6c6ec7f1c62d3e42b5091c5126b3567e7fc
parentd644181fe60f4fcfca7e9e9e9b0503993e391e69
greybus: lights: default value for v4l2 flash controls

V4l2 flash will return erro ERANGE if val(which is the default value)
is not defined. Just set it to the max value reported by the module.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/light.c