0040-ramips-use-GPIO_ACTIVE-macros-in-UBNT-ERX.dts.patch 902 B

1234567891011121314151617181920212223242526272829303132333435
  1. From: Sven Roederer <devel-sven@geroedel.de>
  2. Date: Fri, 5 May 2017 22:18:44 +0200
  3. Subject: ramips: use GPIO_ACTIVE macros in UBNT-ERX.dts
  4. - reorder includes
  5. - use GPIO_ACTIVE_LOW macro instead of hardcoded "1"
  6. Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
  7. diff --git a/target/linux/ramips/dts/UBNT-ERX.dts b/target/linux/ramips/dts/UBNT-ERX.dts
  8. index 0b2da95b30f0e181e1929502b8ef1aa50a684f69..cf86bbb7e67b1c521c279367ee9e99fee88fae85 100644
  9. --- a/target/linux/ramips/dts/UBNT-ERX.dts
  10. +++ b/target/linux/ramips/dts/UBNT-ERX.dts
  11. @@ -1,9 +1,10 @@
  12. -#include <dt-bindings/input/input.h>
  13. -
  14. /dts-v1/;
  15. #include "mt7621.dtsi"
  16. +#include <dt-bindings/gpio/gpio.h>
  17. +#include <dt-bindings/input/input.h>
  18. +
  19. / {
  20. model = "UBNT-ERX";
  21. @@ -24,7 +25,7 @@
  22. reset {
  23. label = "reset";
  24. - gpios = <&gpio0 12 1>;
  25. + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  26. linux,code = <KEY_RESTART>;
  27. };
  28. };