]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
ARM: dts: Use the PWM polarity flags
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 17 Jul 2013 22:54:24 +0000 (00:54 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 3 Sep 2013 11:08:11 +0000 (13:08 +0200)
Replace the numerical polarity flags with the PWM_POLARITY_INVERTED
symbolic constant.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
arch/arm/boot/dts/am335x-evmsk.dts
arch/arm/boot/dts/wm8850-w70v2.dts

index 0c8ad173d2b0894b216f54d4e3b1ef9775327166..62124c71105a2d0835744f7751ca0eed55363307 100644 (file)
@@ -14,6 +14,7 @@
 /dts-v1/;
 
 #include "am33xx.dtsi"
+#include <dt-bindings/pwm/pwm.h>
 
 / {
        model = "TI AM335x EVM-SK";
 
        backlight {
                compatible = "pwm-backlight";
-               pwms = <&ecap2 0 50000 1>;
+               pwms = <&ecap2 0 50000 PWM_POLARITY_INVERTED>;
                brightness-levels = <0 58 61 66 75 90 125 170 255>;
                default-brightness-level = <8>;
        };
index 90e913fb64be39c62c34b1e18f975333510a3758..7a563d2523b02805c84e8521984bf451601dffc9 100644 (file)
 
 /dts-v1/;
 /include/ "wm8850.dtsi"
+#include <dt-bindings/pwm/pwm.h>
 
 / {
        model = "Wondermedia WM8850-W70v2 Tablet";
 
        backlight {
                compatible = "pwm-backlight";
-               pwms = <&pwm 0 50000 1>;        /* duty inverted */
+               pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
 
                brightness-levels = <0 40 60 80 100 130 190 255>;
                default-brightness-level = <5>;