Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11219168ybi; Thu, 25 Jul 2019 12:07:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzV4/OXeLsuG3TWy6/nyY+2llW4/qfS5CN+slswNCUuVzCgaijaY44F/TtQWq6cFQBA2Wl X-Received: by 2002:a63:f048:: with SMTP id s8mr59314260pgj.26.1564081633540; Thu, 25 Jul 2019 12:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564081633; cv=none; d=google.com; s=arc-20160816; b=Tp4jVMxwTi2vArQUbKnCu6jJDCYEmvIGWP2dKagZ+1sVgnxa4h8Y/yxk2vLRbvSWhG KNyM5Ki8kodlXPGJh8XrOE0TeZrexZUTxQVd1LzQWfsQaaq5w9evdic9KcUoocCYe6cI OHHjFUpGLahmVnZdDOCw3MTFxt8/4Cqo4Eu4DDGY6UfeeIRqAKk2qPKOVEJ2QwN9abQS ZxVFa140MEGICf2zZWVrpBWgxq7mwI6txoA/KD3WIpoCdHZ1/Fv2w8HvEYrA5pamcWLF v5YZUpsv5FnMkov82AxgLDyOQmf+Fpi53EPt8kJ2zP6dDGLRoobXc1YGAg5Jvl3xWFOH 1rCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=4WWCBRb3ZrPuT+NiubwGWse0nrgUYpXBuokARdGOo0g=; b=Pv4PHvi9yHrbORGmE/YNlHalDxQVnE49wMEZTGfjr/wCzKmpxtb74daH8FOrv9n/ZS y14LQGJ7nbzntNfnDbtyv6a0Cc5c+Vd0xcvqkDqkSCB7RBghCpS1+n06+Uibdi1Ene4O a11k1uADGTirjHMWkJ10xIqp0rSCwQ8zXKYwaNZ0NlgtuNELNBwhS9pxYEB7dFSWjqWa iBCMsBt9VA/J6DcV7GgVmNI6vbtf3AYtHiLFfHZCjOuYBHBCy+XP+qKp5wZJgyXJhDMP 5/Ca7nnliQY3hQw2GpnNT1b3+7CJZhcTHHYGDaIQG7p8QTCv2f/2KWS33zMP8Xyqxyk1 9b9w== 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 v66si18480314pgb.584.2019.07.25.12.06.58; Thu, 25 Jul 2019 12:07:13 -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 S1726508AbfGYTGM (ORCPT + 99 others); Thu, 25 Jul 2019 15:06:12 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:51939 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726065AbfGYTGL (ORCPT ); Thu, 25 Jul 2019 15:06:11 -0400 Received: from orion.localdomain ([77.9.64.13]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MFKCV-1hazTw0Drl-00FjDC; Thu, 25 Jul 2019 21:06:05 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: info@metux.net, dvhart@infradead.org, andy@infradead.org, platform-driver-x86@vger.kernel.org Subject: [PATCH v2] platform/x86/pcengines-apuv2: use KEY_RESTART for front button Date: Thu, 25 Jul 2019 21:06:03 +0200 Message-Id: <1564081563-28322-1-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 X-Provags-ID: V03:K1:adNwRs05/JGrziC0a2T4c+nfOAroExubb17H0iLxlQ33ip+kwz/ 7V7O6xwh96hqW3M4GD0lI+ijvGJF89qoi8v2j5Gsx9RbKeoJy5e0uEy5NTw86BA4UE2kVeZ L987vPidVJkjN0zJ8WhBzZzI8yTP0y2C0x7MGK/tQUrtJFtYZq5wwMgi2qLC/0DJGSlYRgO ZBbSdIWeB533Y8W4SXoBA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:+SzGQ0XlC70=:ipwKXEW6l7cdJNKjcwxcGe IeDZ9PF+8QLJpOLOCrbykmTRStnIXdLVSnn8XRmwDXKZQM+Oa0ynY9hULzXtj8zuVe34CzrrJ wGUt9ebVvn0NgeoQ78oUDK0bE3A4LpwdGHUK96YLh1r3lFFFhuErwoOdsBP6A/9wJSbKpBJ1V Stiy800JhX16UX5ozolpPtOcgzzyICF4LnT+6v/daxSjIwk2uxgRdixu95JoxFwaRspWVKbWo sNEj/C58LSuARV5HSTebjBlTJ9FUCe5B7t0aw92X3l7Ce6wu2YFWWIb590BPLacb8ANA5OggE A2S7JKSxqxgT/Ptx2e5OpUKJYBWpOqE6GUmDMMn/qHH6bGQApCmi27wpCdcMLeYVfildqwL2G YzmnFnE5ffEhMNF1YKoe45FrZEWvkBXhuH523amSpkhIE8Hb/kxjKs0ipGB5+1J8l5aLQ9G/u 6udYxlgqOQotJsgOklke8sqJ/+xX09L90wEIo5WhfrKGg4Ven1NYLjJKhRVs5Hvu6ECEohzUP 523xZk9UGAYal2f+z4nxE38EmQEJR+oT99PgGYE/2VpgYaDbzar2thSo7PEXNR7hlFev0Wgkt j3BupkqbRUuDx6AX+3yabA6Ttj+z8YXBT1yAOf54W1TXHqNcSOzgG+BRMzQ21ztPkdr21tEmd iP974+lCw16gsk0Q+vvLNBvMlMgHJ2CZLuqSs9+/Bh8kCInVPsKXaVFJnahtsukKNTYK5xP1S ecOvy145/vTT4XiJx+DZjinpjmK0BA0TRBoWKw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Enrico Weigelt The keycode KEY_RESTART is more appropriate for the front button, as most people use it for things like restart or factory reset. Signed-off-by: Enrico Weigelt Fixes: f8eb0235f65989fc5521c40c78d1261e7f25cdbe ("x86: pcengines apuv2 gpio/leds/keys platform driver") --- drivers/platform/x86/pcengines-apuv2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/pcengines-apuv2.c b/drivers/platform/x86/pcengines-apuv2.c index b0d3110..4138007c 100644 --- a/drivers/platform/x86/pcengines-apuv2.c +++ b/drivers/platform/x86/pcengines-apuv2.c @@ -93,7 +93,7 @@ static struct gpio_keys_button apu2_keys_buttons[] = { { - .code = KEY_SETUP, + .code = KEY_RESTART, .active_low = 1, .desc = "front button", .type = EV_KEY, -- 1.9.1