diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2012-12-21 01:44:01 -0800 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2013-02-01 17:47:05 -0800 |
commit | 08541cbcc7386fa78efb454a92ddbfb1a2859cf9 (patch) | |
tree | 288c9a3b4fcd689cb4551999afa39dbfa2fd0ee2 /drivers/leds/leds-lp8788.c | |
parent | 8a66a579083a20172a46e74d175a57621dccae0a (diff) |
leds: leds-pwm: Add device tree bindings
The DT binding for the pwm-leds devices are similar to the gpio-leds type.
LEDs are represented as sub-nodes of the pwm-leds device.
The code for handling the DT boot is based on the code found in the
leds-gpio driver and adapted to use PWMs instead of GPIOs.
To avoid having custom cleanup code in case of DT boot the newly created
devm_of_pwm_get() API is used to get the correct PWM instance.
For usage see:
Documentation/devicetree/bindings/leds/leds-pwm.txt
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds/leds-lp8788.c')
0 files changed, 0 insertions, 0 deletions