video: backlight: fix the value of 'brightness_max'
Fixes: 87c6a88 video/backlight-pwm: fix the value of 'brightness_max'.

brightness_max should really contain the number of brightness steps, so
the number of elements in the brightness array.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent d3700c0 commit ac20c4f03b70bc5ea76681690da767fe367c34ae
@Sascha Hauer Sascha Hauer authored on 29 Aug 2016
Showing 1 changed file
View
drivers/video/backlight-pwm.c