leds: lp8860: Various fixes to align with LED framework
authorDan Murphy <dmurphy@ti.com>
Mon, 18 Dec 2017 20:23:07 +0000 (14:23 -0600)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Mon, 8 Jan 2018 20:28:12 +0000 (21:28 +0100)
commita2169c9b762ac64899b2aefb170ea0e16178afd6
tree02f249b0168bf12ebbb6addc79731adfc9cbcb24
parent50aa46c4bd7b79a57766537dfa8e8c4d8b174a3a
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>
drivers/leds/Kconfig
drivers/leds/leds-lp8860.c