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: 30675 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f199.google.com (mail-ig0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 96B3620671 for ; Fri, 23 May 2014 06:11:17 +0000 (UTC) Received: by mail-ig0-f199.google.com with SMTP id c1sf1008777igq.10 for ; Thu, 22 May 2014 23:11:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=ofttVdod4DB1dyaDt/2ZoRazLCe2wpN6qqrnYh/WvUU=; b=W+SF9qcr1uKR+Xl5VpjkPRnNF4U+5B0EH3V47UAzjO799ISc2ZGCZruQtQy3p9EdT/ tWFKb/GgRJR7ZH5RWMVvZUUrV2eGYpLr0lDG37/3h0egVTgniLKEz/SE/G966KwcEvsF wPtrcLdMoY5NEWFrFIH3l9ZHpZwHlb/VwGd3HMDdcAQJ16FyeCiFnkJpckFBFHFzryS9 QceECnYI5kzRlkBJP99+ZW04+3HFfi5gVOvW/YvnbMHllQxzr0kvfImvpHPvq4K+pJt2 O8bOTPR2F1ztMalr9BKR+GrJt9lZaVrqPJAkEGBIQZHJ4rEJ5UZFoEIsHmZX4fS9rYpk IUTg== X-Gm-Message-State: ALoCoQkeqwkI36p7OTeuKPef5nhhEwwerNSXfzFG12e6DU7GtUoBDjdLwt8UMmzWishNfUloslTN X-Received: by 10.182.137.233 with SMTP id ql9mr1346426obb.46.1400825476986; Thu, 22 May 2014 23:11:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.231 with SMTP id h94ls1617170qgd.49.gmail; Thu, 22 May 2014 23:11:16 -0700 (PDT) X-Received: by 10.220.159.4 with SMTP id h4mr2359812vcx.1.1400825476882; Thu, 22 May 2014 23:11:16 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id r2si1135657vcl.10.2014.05.22.23.11.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 23:11:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id ij19so5738029vcb.0 for ; Thu, 22 May 2014 23:11:16 -0700 (PDT) X-Received: by 10.220.69.72 with SMTP id y8mr2324717vci.21.1400825476810; Thu, 22 May 2014 23:11:16 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp5452vcb; Thu, 22 May 2014 23:11:16 -0700 (PDT) X-Received: by 10.68.204.225 with SMTP id lb1mr3032227pbc.63.1400825476089; Thu, 22 May 2014 23:11:16 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id be6si2475848pac.1.2014.05.22.23.11.15; Thu, 22 May 2014 23:11:15 -0700 (PDT) Received-SPF: none (google.com: linux-samsung-soc-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752180AbaEWGLP (ORCPT + 9 others); 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-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: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 = ; }; };