]> asedeno.scripts.mit.edu Git - linux.git/commit
leds: lm3532: Fix brightness control for i2c mode
authorDan Murphy <dmurphy@ti.com>
Tue, 20 Aug 2019 19:53:03 +0000 (14:53 -0500)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Mon, 26 Aug 2019 18:03:26 +0000 (20:03 +0200)
commit1312394023dd288946757ba5d7ee89d70709fc33
treeb99efcea7a7d86775ca2bf919ae8f89ea47652f5
parentfd81d7e946c6bdb86dbf0bd88fee3e1a545e7979
leds: lm3532: Fix brightness control for i2c mode

Fix the brightness control for I2C mode.  Instead of
changing the full scale current register update the ALS target
register for the appropriate banks.

In addition clean up some code errors and random misspellings found
during coding.

Tested on Droid4 as well as LM3532 EVM connected to a BeagleBoneBlack

Fixes: bc1b8492c764 ("leds: lm3532: Introduce the lm3532 LED driver")
Reported-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
drivers/leds/leds-lm3532.c