commit | df7083b57331da0222380392d8d0d8b39972bef9 | [log] [tgz] |
---|---|---|
author | Guido Günther <agx@sigxcpu.org> | Mon Jan 06 16:48:50 2020 +0100 |
committer | Pavel <pavel@ucw.cz> | Tue Jan 07 14:08:38 2020 +0100 |
tree | a3bcd00e666d143379ea065ea73000f9f68d1f46 | |
parent | 3e0801b62a30f5c83df0b7c75afce50061401e30 [diff] |
leds: lm3692x: Make sure we don't exceed the maximum LED current The current is given by the formular from page 12 of https://www.ti.com/lit/ds/symlink/lm36922.pdf. We use this to limit the led's max_brightness using the led-max-microamp DT property. The formula for the lm36923 is identical according to the data sheet. Signed-off-by: Guido Günther <agx@sigxcpu.org> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Pavel Machek <pavel@ucw.cz>