Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1927926ybi; Thu, 4 Jul 2019 02:11:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQ66EJ13B3awsYyP3W1jk9zxJdbff4AWgWZL6MlmqXixBgtNrC8vJ4hcvKhuAikGLk6gmV X-Received: by 2002:a17:90a:23a4:: with SMTP id g33mr18984212pje.115.1562231495893; Thu, 04 Jul 2019 02:11:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562231495; cv=none; d=google.com; s=arc-20160816; b=TVx3BiG1DWpygfepPODjKh7ukRX+IRBtAHCnuuug0BqNe2+iKvxtQjzwhZG9SxRkkm m098acV9kZk0qPDInRWssauaxjK2WPwmPEYPdenNG7e4q7OwI+kHV9dNowU61rLc1tAx anotA52ITa2yGS2OulxbhKqYruJT0B1w8vzB9qQpL396qC+Tb7aVGjukibNUcHbE2Pnd jiv9A9CssXIq+Afshke1cNVSiLu2iIwXIH0E87sPmmae+mdHjBzjGgS94kQYANdQ6KmO dpm1lcHePFpWGpBlRhdrCVt/LOEzJ/hC1hLf8Fb0gC+FjU7swYhDtZpAfbE5jCMXbsHd zcdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=jrMvlp+pn1CWF8WiEZOaT1O88EuGe4VcMCz33mDthdg=; b=PP/Poqe2fYqBjUkcdfARxLMkg49hxgNCF9NsL9KzOkbFPr0Ky9tePRChQoUB+oykeU SMLpne2PD5UVRo39usOCslxPb4BIDEGcO0dZl5rHYY7e0Z7+hfr+D61Z2MRn5ZBf0fcC shZxLJeKaAj3/3LZwbP3lUxDyLEsd99k+CTme7tg0QO3nsY62yCBJ4S771BgGdsxRm3K HYhgl/38iA+4F3iarnLedVBhvPNeFpItz0zrnT3L/7vzsD7DxbYTt9G4SApGFYwYyO7b RhrPYS6b7VFtxWtTHhSZIOBOO2u5FmGRHYFFGDs5+XtJxjQEaczbqUTKQpFp2iGeeX8M +IPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k16si4955997pfi.174.2019.07.04.02.11.21; Thu, 04 Jul 2019 02:11:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727303AbfGDJKQ (ORCPT + 99 others); Thu, 4 Jul 2019 05:10:16 -0400 Received: from host-88-217-225-28.customer.m-online.net ([88.217.225.28]:10798 "EHLO mail.dev.tdt.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727140AbfGDJKP (ORCPT ); Thu, 4 Jul 2019 05:10:15 -0400 Received: from feckert01.dev.tdt.de (unknown [10.2.3.40]) by mail.dev.tdt.de (Postfix) with ESMTPSA id 64B5D21592; Thu, 4 Jul 2019 09:02:30 +0000 (UTC) From: Florian Eckert To: Eckert.Florian@googlemail.com, info@metux.net, dvhart@infradead.org, andy@infradead.org Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Florian Eckert Subject: [PATCH 3/3] platform//x86/pcengines-apuv2: update gpio button definition Date: Thu, 4 Jul 2019 11:02:05 +0200 Message-Id: <20190704090205.19400-4-fe@dev.tdt.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190704090205.19400-1-fe@dev.tdt.de> References: <20190704090205.19400-1-fe@dev.tdt.de> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dev.tdt.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Add the gpio number, so the button subsystem can find the right gpio. * Change also the keycode from KEY_SETUP to KEY_RESTART, because it seems more expressive to me and in the Alix-Board, which is the predecessor, there isthis keycode defined too. I think this is also intended by Pcengines. Also many embedded systems defined in the kernel use this key code as well. Signed-off-by: Florian Eckert --- drivers/platform/x86/pcengines-apuv2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/pcengines-apuv2.c b/drivers/platform/x86/pcengines-apuv2.c index d50a50e9d34c..370fd2686d59 100644 --- a/drivers/platform/x86/pcengines-apuv2.c +++ b/drivers/platform/x86/pcengines-apuv2.c @@ -116,7 +116,8 @@ struct gpiod_lookup_table gpios_led_table = { static struct gpio_keys_button apu2_keys_buttons[] = { { - .code = KEY_SETUP, + .code = KEY_RESTART, + .gpio = 508, .active_low = 1, .desc = "front button", .type = EV_KEY, -- 2.11.0