ARM: dts: imx51-babbage: Use predefined constants for keys definition
authorAlexander Shiyan <shc_work@mail.ru>
Wed, 16 Apr 2014 07:24:53 +0000 (11:24 +0400)
committerShawn Guo <shawn.guo@freescale.com>
Fri, 16 May 2014 15:01:57 +0000 (23:01 +0800)
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
arch/arm/boot/dts/imx51-babbage.dts

index 1652f6aa1036926b00fec47e9366168f506790dd..a8d6168c51333fd0c75c8f6b48e3556231fc7674 100644 (file)
@@ -88,7 +88,7 @@
                power {
                        label = "Power Button";
                        gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
-                       linux,code = <116>; /* KEY_POWER */
+                       linux,code = <KEY_POWER>;
                        gpio-key,wakeup;
                };
        };