From: Michael Walle Date: Thu, 27 Sep 2012 21:54:37 +0000 (+0200) Subject: ARM: kirkwood: fix buttons on lsxl boards X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=12431634947f4c34015561104c4f8a305bfe6b48;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git ARM: kirkwood: fix buttons on lsxl boards 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 Signed-off-by: Jason Cooper --- diff --git a/arch/arm/boot/dts/kirkwood-lsxl.dtsi b/arch/arm/boot/dts/kirkwood-lsxl.dtsi index a1dd36d3696..8fea375c734 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@1 { label = "Function Button"; - linux,code = <132>; + linux,code = <357>; gpios = <&gpio1 9 1>; }; button@2 { label = "Power-on Switch"; - linux,code = <116>; + linux,code = <0>; + linux,input-type = <5>; gpios = <&gpio1 10 1>; }; button@3 { label = "Power-auto Switch"; - linux,code = <142>; + linux,code = <1>; + linux,input-type = <5>; gpios = <&gpio1 11 1>; }; };