[source] ramips: use GPIO_ACTIVE macros in UBNT-ERX.dts
LEDE Commits
lede-commits at lists.infradead.org
Sat May 6 01:50:29 PDT 2017
mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/4c3953ba291abfb1d28b1452b6e519367bf4f242
commit 4c3953ba291abfb1d28b1452b6e519367bf4f242
Author: Sven Roederer <devel-sven at geroedel.de>
AuthorDate: Fri May 5 22:18:44 2017 +0200
ramips: use GPIO_ACTIVE macros in UBNT-ERX.dts
- 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>;
};
};
More information about the lede-commits
mailing list