From mboxrd@z Thu Jan 1 00:00:00 1970 From: gregory.clement@free-electrons.com (Gregory CLEMENT) Date: Tue, 11 Feb 2014 18:47:00 +0100 Subject: [PATCH 3/3] ARM: mvebu: use input DT defines in Armada 370/XP boards In-Reply-To: <1392138433-12573-4-git-send-email-thomas.petazzoni@free-electrons.com> References: <1392138433-12573-1-git-send-email-thomas.petazzoni@free-electrons.com> <1392138433-12573-4-git-send-email-thomas.petazzoni@free-electrons.com> Message-ID: <52FA6214.7080201@free-electrons.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Thomas, On 11/02/2014 18:07, Thomas Petazzoni wrote: > Instead of harcoding keycodes specifications in the Armada 370/XP > boards, use the header file and its > keycode definitions. It's easier to read now, Thanks, Gregory > > Signed-off-by: Thomas Petazzoni Acked-by: Gregory CLEMENT > --- > arch/arm/boot/dts/armada-370-rd.dts | 3 ++- > arch/arm/boot/dts/armada-xp-axpwifiap.dts | 3 ++- > arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts | 3 ++- > 3 files changed, 6 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/boot/dts/armada-370-rd.dts b/arch/arm/boot/dts/armada-370-rd.dts > index c28865d..3e2c857 100644 > --- a/arch/arm/boot/dts/armada-370-rd.dts > +++ b/arch/arm/boot/dts/armada-370-rd.dts > @@ -12,6 +12,7 @@ > */ > > /dts-v1/; > +#include > #include > #include "armada-370.dtsi" > > @@ -101,7 +102,7 @@ > #size-cells = <0>; > button at 1 { > label = "Software Button"; > - linux,code = <116>; > + linux,code = ; > gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; > }; > }; > diff --git a/arch/arm/boot/dts/armada-xp-axpwifiap.dts b/arch/arm/boot/dts/armada-xp-axpwifiap.dts > index db1ef58..d83d7d6 100644 > --- a/arch/arm/boot/dts/armada-xp-axpwifiap.dts > +++ b/arch/arm/boot/dts/armada-xp-axpwifiap.dts > @@ -17,6 +17,7 @@ > > /dts-v1/; > #include > +#include > #include "armada-xp-mv78230.dtsi" > > / { > @@ -158,7 +159,7 @@ > > button at 1 { > label = "Factory Reset Button"; > - linux,code = <141>; /* KEY_SETUP */ > + linux,code = ; > gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; > }; > }; > diff --git a/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts b/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts > index 944acfb..985948c 100644 > --- a/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts > +++ b/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts > @@ -12,6 +12,7 @@ > > /dts-v1/; > #include > +#include > #include "armada-xp-mv78260.dtsi" > > / { > @@ -115,7 +116,7 @@ > > button at 1 { > label = "Init Button"; > - linux,code = <116>; > + linux,code = ; > gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; > }; > }; > -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com