diff options
author | Sven Roederer <devel-sven@geroedel.de> | 2017-05-05 22:18:44 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-05-06 09:49:00 +0200 |
commit | 4c3953ba291abfb1d28b1452b6e519367bf4f242 (patch) | |
tree | 805d37b43b5df170a914c88f6952f03be0735cfd /target | |
parent | 64f2efcdff0f0e3d030340f2bb8fc7e5f6cae5b1 (diff) | |
download | mtk-20170518-4c3953ba291abfb1d28b1452b6e519367bf4f242.zip mtk-20170518-4c3953ba291abfb1d28b1452b6e519367bf4f242.tar.gz mtk-20170518-4c3953ba291abfb1d28b1452b6e519367bf4f242.tar.bz2 |
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@geroedel.de>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ramips/dts/UBNT-ERX.dts | 7 |
1 files 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>; }; }; |