ARM: dts: STiH418-B2199: Update gpio specifier
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 10 Aug 2016 13:13:00 +0000 (15:13 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Fri, 2 Sep 2016 13:15:14 +0000 (15:15 +0200)
- Remove useless gpio-cells
- Update second parameter by using GPIO_ACTIVE_HIGH/LOW
  instead of hardcoded value

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/stih418-b2199.dts

index 7c45e75b4c96501643b8877b98896c212b731a9b..438e54c585b1c1291a6cfc362362b06d1460dc66 100644 (file)
@@ -8,6 +8,7 @@
  */
 /dts-v1/;
 #include "stih418.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 / {
        model = "STiH418 B2199";
        compatible = "st,stih418-b2199", "st,stih418";
                leds {
                        compatible = "gpio-leds";
                        red {
-                               #gpio-cells = <2>;
                                label = "Front Panel LED";
-                               gpios = <&pio4 1 0>;
+                               gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
                                linux,default-trigger = "heartbeat";
                        };
                        green {
-                               #gpio-cells = <2>;
-                               gpios = <&pio1 3 0>;
+                               gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
                                default-state = "off";
                        };
                };