ramips: use GPIO_ACTIVE macros in UBNT-ERX.dts
authorSven Roederer <devel-sven@geroedel.de>
Fri, 5 May 2017 20:18:44 +0000 (22:18 +0200)
committerMathias Kresin <dev@kresin.me>
Sat, 6 May 2017 07:49:00 +0000 (09:49 +0200)
- reorder includes
- use GPIO_ACTIVE_LOW macro instead of hardcoded "1"

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
target/linux/ramips/dts/UBNT-ERX.dts

index 0b2da95b30f0e181e1929502b8ef1aa50a684f69..cf86bbb7e67b1c521c279367ee9e99fee88fae85 100644 (file)
@@ -1,9 +1,10 @@
-#include <dt-bindings/input/input.h>
-
 /dts-v1/;
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
        model = "UBNT-ERX";
 
@@ -24,7 +25,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };