leds: lp8860: Various fixes to align with LED framework
Update the driver to conform with the LED framework: - use devm_led_classdev_register - destroy mutex on exit - remove dependency on CONFIG_OF in the driver and move to the Kconfig - update the MODULE_LICENSE to GPL v2 - remove setting of MAX brightness as the LED framework does this. Signed-off-by: Dan Murphy <dmurphy@ti.com> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
This commit is contained in:
committed by
Jacek Anaszewski
parent
50aa46c4bd
commit
a2169c9b76
@ -354,7 +354,7 @@ config LEDS_LP8788
|
||||
|
||||
config LEDS_LP8860
|
||||
tristate "LED support for the TI LP8860 4 channel LED driver"
|
||||
depends on LEDS_CLASS && I2C
|
||||
depends on LEDS_CLASS && I2C && OF
|
||||
select REGMAP_I2C
|
||||
help
|
||||
If you say yes here you get support for the TI LP8860 4 channel
|
||||
|
Reference in New Issue
Block a user