diff options
author | Dan Murphy <dmurphy@ti.com> | 2017-12-18 21:23:07 +0100 |
---|---|---|
committer | Jacek Anaszewski <jacek.anaszewski@gmail.com> | 2018-01-08 21:28:12 +0100 |
commit | a2169c9b762ac64899b2aefb170ea0e16178afd6 (patch) | |
tree | 02f249b0168bf12ebbb6addc79731adfc9cbcb24 /drivers/leds/Kconfig | |
parent | leds: lp8860: Add DT parsing to retrieve the trigger node (diff) | |
download | linux-a2169c9b762ac64899b2aefb170ea0e16178afd6.tar.xz linux-a2169c9b762ac64899b2aefb170ea0e16178afd6.zip |
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>
Diffstat (limited to 'drivers/leds/Kconfig')
-rw-r--r-- | drivers/leds/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index 1d215b39cefd..3e763d2a0cb3 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -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 |