linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: michael@walle.cc (Michael Walle)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: kirkwood: fix buttons on lsxl boards
Date: Tue, 16 Oct 2012 19:21:27 +0200	[thread overview]
Message-ID: <201210161921.27831.michael@walle.cc> (raw)
In-Reply-To: <1348782877-857-1-git-send-email-michael@walle.cc>


Hi Andrew,

Can you pick this patch?


Am Donnerstag 27 September 2012, 23:54:37 schrieb Michael Walle:
> Change event type to switch for the power and autopower switches.
> Additionally, this patch aligns the keycodes with the other linkstation
> boards already supported by linux.
> 
> Signed-off-by: Michael Walle <michael@walle.cc>
> ---
>  arch/arm/boot/dts/kirkwood-lsxl.dtsi |    8 +++++---
>  1 files changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/kirkwood-lsxl.dtsi
> b/arch/arm/boot/dts/kirkwood-lsxl.dtsi index a1dd36d..8fea375 100644
> --- a/arch/arm/boot/dts/kirkwood-lsxl.dtsi
> +++ b/arch/arm/boot/dts/kirkwood-lsxl.dtsi
> @@ -48,17 +48,19 @@
>  		#size-cells = <0>;
>  		button at 1 {
>  			label = "Function Button";
> -			linux,code = <132>;
> +			linux,code = <357>;
>  			gpios = <&gpio1 9 1>;
>  		};
>  		button at 2 {
>  			label = "Power-on Switch";
> -			linux,code = <116>;
> +			linux,code = <0>;
> +			linux,input-type = <5>;
>  			gpios = <&gpio1 10 1>;
>  		};
>  		button at 3 {
>  			label = "Power-auto Switch";
> -			linux,code = <142>;
> +			linux,code = <1>;
> +			linux,input-type = <5>;
>  			gpios = <&gpio1 11 1>;
>  		};
>  	};


-- 
Michael

  reply	other threads:[~2012-10-16 17:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-27 21:54 [PATCH] ARM: kirkwood: fix buttons on lsxl boards Michael Walle
2012-10-16 17:21 ` Michael Walle [this message]
2012-10-16 18:15   ` Jason Cooper
2012-10-18 18:38 ` Jason Cooper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201210161921.27831.michael@walle.cc \
    --to=michael@walle.cc \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).