ARM: dts: STiH41x-b2020: 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/stih41x-b2020.dtsi

index 487d7d87dbefb1127a1de540c5a839145e0325ad..322e0e95176c4af242bb4ea534ed7e959dbc821b 100644 (file)
@@ -7,6 +7,7 @@
  * publishhed by the Free Software Foundation.
  */
 #include "stih41x-b2020x.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 / {
        memory{
                device_type = "memory";
                leds {
                        compatible      = "gpio-leds";
                        red {
-                               #gpio-cells = <1>;
                                label   = "Front Panel LED";
-                               gpios   = <&pio4 1>;
+                               gpios   = <&pio4 1 GPIO_ACTIVE_HIGH>;
                                linux,default-trigger   = "heartbeat";
                        };
                        green {
-                               gpios   = <&pio4 7>;
+                               gpios   = <&pio4 7 GPIO_ACTIVE_HIGH>;
                                default-state = "off";
                        };
                };