From: Peter Ujfalusi Date: Fri, 21 Dec 2012 09:44:01 +0000 (-0800) Subject: leds: leds-pwm: Add device tree bindings X-Git-Tag: v3.9-rc1~79^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08541cbcc7386fa78efb454a92ddbfb1a2859cf9;p=pandora-kernel.git 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 Acked-by: Grant Likely Signed-off-by: Bryan Wu --- Reading git-diff-tree failed