From mboxrd@z Thu Jan 1 00:00:00 1970 From: sebastian.hesselbarth@gmail.com (Sebastian Hesselbarth) Date: Mon, 14 Apr 2014 11:43:21 +0200 Subject: [PATCH 10/29] ARM: orion5x: use existing dt-bindings include for Device Tree files In-Reply-To: <1397400006-4315-11-git-send-email-thomas.petazzoni@free-electrons.com> References: <1397400006-4315-1-git-send-email-thomas.petazzoni@free-electrons.com> <1397400006-4315-11-git-send-email-thomas.petazzoni@free-electrons.com> Message-ID: <534BADB9.2060004@gmail.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 04/13/2014 04:39 PM, Thomas Petazzoni wrote: > 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 Acked-by: Sebastian Hesselbarth > --- > arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > 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 0245bb3..24f1ce7 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 at 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 at 1 { > label = "power:blue"; > - gpios = <&gpio0 16 1>; > + gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; > }; > }; > }; >