From: Thomas Petazzoni Date: Tue, 22 Apr 2014 21:26:16 +0000 (+0200) Subject: ARM: orion5x: use existing dt-bindings include for Device Tree files X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2a93474299e5c9e39678596ff69fd5dbf1914769;p=linux-beck.git ARM: orion5x: use existing dt-bindings include for Device Tree files The orion5x-lacie-ethernet-disk-mini-v2.dts can benefit from using gpio.h and input.h dt-bindings headers to replace hardcoded values by more meaningful macros. Signed-off-by: Thomas Petazzoni Link: https://lkml.kernel.org/r/1398202002-28530-13-git-send-email-thomas.petazzoni@free-electrons.com Acked-by: Sebastian Hesselbarth Signed-off-by: Jason Cooper --- diff --git a/arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts b/arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts index 0245bb3a4cb6..24f1ce7c9c10 100644 --- a/arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts +++ b/arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts @@ -8,6 +8,8 @@ /dts-v1/; +#include +#include #include "orion5x.dtsi" / { @@ -40,8 +42,8 @@ #size-cells = <0>; button@1 { label = "Power-on Switch"; - linux,code = <116>; /* KEY_POWER */ - gpios = <&gpio0 18 0>; + linux,code = ; + gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; }; }; @@ -50,7 +52,7 @@ led@1 { label = "power:blue"; - gpios = <&gpio0 16 1>; + gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; }; }; };