[LEDE-DEV] [PATCH] ramips: use GPIO_ACTIVE macros in UBNT-ERX.dts

Sven Roederer devel-sven at geroedel.de
Fri May 5 13:18:44 PDT 2017


as suggested by by Mathias Kresin <dev at kresin.me>
- reorder includes
- use GPIO_ACTIVE_LOW macro instead of hardcoded "1"

Signed-off-by: Sven Roederer <devel-sven at geroedel.de>
---
 target/linux/ramips/dts/UBNT-ERX.dts | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/target/linux/ramips/dts/UBNT-ERX.dts b/target/linux/ramips/dts/UBNT-ERX.dts
index 0b2da95..cf86bbb 100644
--- a/target/linux/ramips/dts/UBNT-ERX.dts
+++ b/target/linux/ramips/dts/UBNT-ERX.dts
@@ -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>;
 		};
 	};
-- 
2.1.4




More information about the Lede-dev mailing list