From patchwork Fri May 23 06:08:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 4228291 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 47AEDBF90B for ; Fri, 23 May 2014 06:11:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7104D201B4 for ; Fri, 23 May 2014 06:11:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 88C7A200C6 for ; Fri, 23 May 2014 06:11:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752180AbaEWGLP (ORCPT ); Fri, 23 May 2014 02:11:15 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:50643 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752164AbaEWGLO (ORCPT ); Fri, 23 May 2014 02:11:14 -0400 Received: by mail-pa0-f54.google.com with SMTP id bj1so3643858pad.13 for ; Thu, 22 May 2014 23:11:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=etrFIZZCjpdy8YNs0ItwQa4lt2sLzDUxHSqcmKGRyHE=; b=ackPXAvfkBm0mHAQ+GDT1nyGeWEzlxw6r5DRioKZq3EKkRdfGmxL7I2NUXY8N545q4 4736XR/PCxTKN0rSszPG2Ve60gFSbHzfCLuWxFFJh3YuGruyMubsb1Qa/pjBnhj8bN/V 0BOfqpaQyt+iqKJiaBtfYepn0VDzLsi2LoEGJwwaPRty4x2IB6SEdi4Thrcw2kPRgzS1 PICbfok4VuwYADcFDouTxOrRbHISg0ldiA4ipscMzqKqI4vGdg8maCHzk3PA/2d/830+ L7gRTM5R3lu04aZwcaePjS27tj2KCpghFoCPzsTbf5i/lv7aW1Qi9poQmVKMnHB/AP7P 0hMw== X-Gm-Message-State: ALoCoQmMv47T5s3GC8J59412tSc6BU1CAhdR9M7tiZAuaCTQUiCkbbIXAadxr1nfvrwH7wEo4eOD X-Received: by 10.66.121.197 with SMTP id lm5mr3151658pab.118.1400825473861; Thu, 22 May 2014 23:11:13 -0700 (PDT) Received: from linaro.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id wg7sm2697994pbc.73.2014.05.22.23.11.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 23:11:13 -0700 (PDT) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, sachin.kamat@linaro.org Subject: [PATCH 3/5] ARM: dts: Replace numbers with key code macros on Origen boards Date: Fri, 23 May 2014 11:38:56 +0530 Message-Id: <1400825338-1272-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1400825338-1272-1-git-send-email-sachin.kamat@linaro.org> References: <1400825338-1272-1-git-send-email-sachin.kamat@linaro.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Key code macros improve readability. Signed-off-by: Sachin Kamat --- arch/arm/boot/dts/exynos4210-origen.dts | 11 ++++++----- arch/arm/boot/dts/exynos4412-origen.dts | 13 +++++++------ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/arch/arm/boot/dts/exynos4210-origen.dts b/arch/arm/boot/dts/exynos4210-origen.dts index f018e2149168..f767c425d0b5 100644 --- a/arch/arm/boot/dts/exynos4210-origen.dts +++ b/arch/arm/boot/dts/exynos4210-origen.dts @@ -16,6 +16,7 @@ /dts-v1/; #include "exynos4210.dtsi" +#include / { model = "Insignal Origen evaluation board based on Exynos4210"; @@ -259,35 +260,35 @@ up { label = "Up"; gpios = <&gpx2 0 1>; - linux,code = <103>; + linux,code = ; gpio-key,wakeup; }; down { label = "Down"; gpios = <&gpx2 1 1>; - linux,code = <108>; + linux,code = ; gpio-key,wakeup; }; back { label = "Back"; gpios = <&gpx1 7 1>; - linux,code = <158>; + linux,code = ; gpio-key,wakeup; }; home { label = "Home"; gpios = <&gpx1 6 1>; - linux,code = <102>; + linux,code = ; gpio-key,wakeup; }; menu { label = "Menu"; gpios = <&gpx1 5 1>; - linux,code = <139>; + linux,code = ; gpio-key,wakeup; }; }; diff --git a/arch/arm/boot/dts/exynos4412-origen.dts b/arch/arm/boot/dts/exynos4412-origen.dts index bd3985b767c4..e925c9fbfb07 100644 --- a/arch/arm/boot/dts/exynos4412-origen.dts +++ b/arch/arm/boot/dts/exynos4412-origen.dts @@ -14,6 +14,7 @@ /dts-v1/; #include "exynos4412.dtsi" +#include / { model = "Insignal Origen evaluation board based on Exynos4412"; @@ -84,37 +85,37 @@ key_home { keypad,row = <0>; keypad,column = <0>; - linux,code = <102>; + linux,code = ; }; key_down { keypad,row = <0>; keypad,column = <1>; - linux,code = <108>; + linux,code = ; }; key_up { keypad,row = <1>; keypad,column = <0>; - linux,code = <103>; + linux,code = ; }; key_menu { keypad,row = <1>; keypad,column = <1>; - linux,code = <139>; + linux,code = ; }; key_back { keypad,row = <2>; keypad,column = <0>; - linux,code = <158>; + linux,code = ; }; key_enter { keypad,row = <2>; keypad,column = <1>; - linux,code = <28>; + linux,code = ; }; };