leds: leds-pwm: add DT support for LEDs wired to supply
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 6 Apr 2014 22:20:24 +0000 (15:20 -0700)
committerBryan Wu <cooloney@gmail.com>
Thu, 8 May 2014 06:28:07 +0000 (14:28 +0800)
commitb0571e7e4ec4d62b27711758417c388042f7bae7
tree5955d8df122121f629d058aa40c181d19a8f4dd9
parentd19a8a7078a9a8e254c030bcdb6732d26cbd6c16
leds: leds-pwm: add DT support for LEDs wired to supply

The non-DT driver allowed an active low property to be specified, but DT
is missing this in its description.  Add the property to the DT binding
document, making it optional.  It defaults to active high, which retains
compatibility with existing descriptions.

This should only be used for causes where the LED is wired to supply,
and the PWM does not sensibly support its own inversion.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Documentation/devicetree/bindings/leds/leds-pwm.txt
drivers/leds/leds-pwm.c