leds: tlc591xx: update the maximum brightness
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Mon, 23 Sep 2019 10:02:50 +0000 (12:02 +0200)
committerPavel <pavel@ucw.cz>
Sun, 3 Nov 2019 16:38:09 +0000 (17:38 +0100)
commita2cafdfd8cf5ad8adda6c0ce44a59f46431edf02
tree0f8261c0d918a3dc164d25ac1d0701a2a978dca1
parentda61a66a829d67b854089aa5ec4c5a2031bb0864
leds: tlc591xx: update the maximum brightness

The TLC chips actually offer 257 levels:
- 0: led OFF
- 1-255: Led dimmed is using a PWM. The duty cycle range from 0.4% to 99.6%
- 256: led fully ON

Fixes: e370d010a5fe ("leds: tlc591xx: Driver for the TI 8/16 Channel i2c LED driver")
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-tlc591xx.c