From patchwork Sun Feb 21 11:06:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 8368851 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 91FF9C0553 for ; Sun, 21 Feb 2016 18:09:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9CBEA203C1 for ; Sun, 21 Feb 2016 18:09:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B9C1A203B5 for ; Sun, 21 Feb 2016 18:09:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751130AbcBUSJ0 (ORCPT ); Sun, 21 Feb 2016 13:09:26 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:35448 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750767AbcBUSJZ (ORCPT ); Sun, 21 Feb 2016 13:09:25 -0500 Received: by mail-wm0-f50.google.com with SMTP id c200so141379792wme.0; Sun, 21 Feb 2016 10:09:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fndKQzs+GU7LzqWKBKs08ECwQPV1cRJhw/S8r038wtk=; b=eyaBuaPDfnXpz8/RAxYOWCp2KX5VdghDzBfsfx/RwiJjYJm5psUasGQA/+9vD+VmSD icy7RGt9ul9vhOlECjhiXd+xAWUkd87HBuYdShjN+N/bp697Brcie0rwGTzjEzGtxS5x XMdCKQ2JP0+PyWs+0sGYXTVbZz0F2E4vSo1LSdQdpWc2tbau2XLJV7LoSJvK1K5Df7Th 7rQYqKNiEW/ZK6PoF3xrZOG2GFyX0cE4y998LK4GqET36w9BJhZIHsUcikAcd3Kdxhi2 3l7l72XwTCzT36DqWo1LXtBG8Y8rPUe15p+DM5YBVYomM2lt9DsrdtMyRcu6GJIBrYdl CZ9w== 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:mime-version :content-transfer-encoding; bh=fndKQzs+GU7LzqWKBKs08ECwQPV1cRJhw/S8r038wtk=; b=EEJ9ZhrDrUEyeIYBrGGOjERITFcx9u3Hi0fWOVtvAlk/Xe3EwfahnGU7pqZOlYnqZs /omMvOEZ+MzqvucUFzKfY62KjJL5PkgvJ4oXSKnq02POLl+RJ0/XaKBbeFMoaNEBsePC ZromPUfWuAECqG37KMRgOA8PeE8lcNG9uxkuqM9M2RO7tcmnKIxmlhWl6f0hR+KYZMqk Wqj5yOqVOgr/9PITfCcfDrpAzPACukrg/jP5BQdQn2ICW/ZiBf/EQNxqrV0n5O017oBM ZoVjedEA1MA2Y+rfXtH+3TXFnxz3VUF1JTomrksU4gaj5Oy1T37kOXm82Lfv98mvUfY9 MBmw== X-Gm-Message-State: AG10YOQB4XqeBoAiNjymTIGDv1WLAIZJGeQfMsSRKrc9Bp8g+jI/JncOpS0vI55Jntobhg== X-Received: by 10.28.147.72 with SMTP id v69mr6375225wmd.79.1456052820821; Sun, 21 Feb 2016 03:07:00 -0800 (PST) Received: from localhost.localdomain (pali.kolej.mff.cuni.cz. [78.128.193.202]) by smtp.gmail.com with ESMTPSA id u9sm16034864wmd.4.2016.02.21.03.06.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Feb 2016 03:07:00 -0800 (PST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Tony Lindgren , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Pavel Machel , Aaro Koskinen , Sebastian Reichel , Ivaylo Dimitrov , Nishanth Menon Cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Pali=20Roh=C3=A1r?= Subject: [PATCH] ARM: dts: n900: Use linux input defines instead hardcoded constants Date: Sun, 21 Feb 2016 12:06:48 +0100 Message-Id: <1456052808-14461-1-git-send-email-pali.rohar@gmail.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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 This makes DTS structure more readable. Signed-off-by: Pali Rohár Acked-by: Pavel Machek --- arch/arm/boot/dts/omap3-n900.dts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index e0443cd..85c29f3 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts @@ -65,45 +65,45 @@ camera_lens_cover { label = "Camera Lens Cover"; gpios = <&gpio4 14 GPIO_ACTIVE_LOW>; /* 110 */ - linux,input-type = <5>; /* EV_SW */ - linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */ + linux,input-type = ; + linux,code = ; wakeup-source; }; camera_focus { label = "Camera Focus"; gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */ - linux,code = <0x210>; /* KEY_CAMERA_FOCUS */ + linux,code = ; wakeup-source; }; camera_capture { label = "Camera Capture"; gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */ - linux,code = <0xd4>; /* KEY_CAMERA */ + linux,code = ; wakeup-source; }; lock_button { label = "Lock Button"; gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */ - linux,code = <0x98>; /* KEY_SCREENLOCK */ + linux,code = ; wakeup-source; }; keypad_slide { label = "Keypad Slide"; gpios = <&gpio3 7 GPIO_ACTIVE_LOW>; /* 71 */ - linux,input-type = <5>; /* EV_SW */ - linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */ + linux,input-type = ; + linux,code = ; wakeup-source; }; proximity_sensor { label = "Proximity Sensor"; gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */ - linux,input-type = <5>; /* EV_SW */ - linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */ + linux,input-type = ; + linux,code = ; }; };