Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7155818ybi; Mon, 22 Jul 2019 08:02:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqx496QecOA2cBlUOU6sWDYSxUx5ot+Fz/H44qm4U6FXxi4aCxQx+/CfnkOcmZeehXy2bNwE X-Received: by 2002:a17:902:8ec7:: with SMTP id x7mr74774651plo.224.1563807744016; Mon, 22 Jul 2019 08:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563807744; cv=none; d=google.com; s=arc-20160816; b=XeNpkjcjCNPJuRmugurqj4TcH5mI8T7O4MPu7vX9ttkHAnPTQAuWSECUHcYHOSpD1O AOAdJSCYW9y4Q5Ys5/jAbVeE0AiJKyuT+TBvwKr4It7u1dqEw0JcC77kO8hhoW6tBbF7 LCc/9wtcdjo2OtXBxipT1a1mLBIIsNm73jDuHjBQpL1o7dUjZXEH363voUqhfVqqz8RH 0A7lPQjd711+lPw5YL8BPA49OaHm6FJOG3BUcal0aeujeK0GN4FQjN8kgDAqVNOHwaT8 +awqIrsG7WCvr9v187eYLy1ySVm2scXZlrBST0Wi9iMb4enCHeIRlqOiLgV0gqPNOdMQ ntAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=5pxFmMALy0Bqyba55nT8PtTRmVAYOrBOhSOIUbcI2Jw=; b=Hb4GadE8UPtdJRcklGrPXJMhGU4pqbO7dJtkEITOPp9Yj/TfxL4wQK9Xbb6KW8bhZc l6BmchPtr9xch5EDO7l7K4McBIX2Xa8uYctkt3VoImn+pJB5usmGSBF3eP8dZUpM1Ijc GE0PZp3a/WpYVGS/IeePtoDyo4CXCo704V69e8+HS569jwzpwXci3lmQkS3cLSlBhYYx inGIHKsh1nWfSxUzCTJBKLNCUE6XfVGW7HeYtQmRVzozSon2dSkqdn0dNyG5NbY8nsbT DNhqgvwXLpCK9dj254abnpXw1rBXkMm3QrmLZ1nPW1ldnXjFe+gghZizFsfYHZ9JuFfx AyNg== 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 f2si10148158plt.386.2019.07.22.08.02.07; Mon, 22 Jul 2019 08:02:24 -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 S1728915AbfGVL2D (ORCPT + 99 others); Mon, 22 Jul 2019 07:28:03 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:53251 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbfGVL2D (ORCPT ); Mon, 22 Jul 2019 07:28:03 -0400 Received: from [192.168.1.110] ([77.2.59.209]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MODeL-1i4gmS1upd-00OUzH; Mon, 22 Jul 2019 13:27:57 +0200 Subject: Re: [PATCH 3/3] platform//x86/pcengines-apuv2: update gpio button definition To: Florian Eckert , 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 References: <20190704090205.19400-1-fe@dev.tdt.de> <20190704090205.19400-4-fe@dev.tdt.de> From: "Enrico Weigelt, metux IT consult" Organization: metux IT consult Message-ID: Date: Mon, 22 Jul 2019 13:27:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190704090205.19400-4-fe@dev.tdt.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:m8w2I/efKtMX8Bj3Zxwxo4ylumLdLVBWDdm0jN/TSvI90qhVQn7 RH2M9cFAAOxds7X3KkynFxrBdsbmfJLL5VBfAvJelgdE2aOEkVVVfqEw5vBYktV2KhcFdSu XP1/7+F3L/KAOKb5/kRk0U1V4q9vdefrDZ+YoWh552py9hb4SZ6MHq1RHsdXeUNpyFiahLu 9q5/PmGvx+8/PrBFzUGQA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:BaLexRi1z78=:EtsBshB8Y5Kb9YOFM9kiBs DQwv4x4K4KKvQSHtbSGqqPcZ2AbsWCebhYpO2wNQffbjDZbf1YBIFZQR3wZd+IJZM1osDAtcM 0fpwcKduYuby1YdFz3PmjgtseEPDbXub7phUWa2+G+lGH3YUJs1lNCj9K9XZZoxR6pne4iDWW 5s/uU/onXJ1jZ+nL3KxhTGTnKB1cquCcRbfvSE47he6tJxoQeP7Of5hHWTQcRrvn8oqmWEaWC 2SjjJoEAJodvOdExXdy9NSNmUMFYiRwJZAgMLxWGd5HZtp7ush4absHy8eOsO+luw2pNfig8+ e+oexgzNW8V+MRztKD7mMPdBj9cGU/00wGLZb5drizXN+ULNpso09Oip6YOHzlC2mbRrAitD1 EqrQHQq+6Rpl3Vi9Cv/hQCZdMOqSmv+FuLCDOZRKnfRPSBDcG6PhJIbP/G7AizftQ1PdY3eq1 lx0+lguiiTdlD+VkNX1oxs2l/hwi/Fx9NjDr0pQAV061iuMwHHtUo0ga69K1si0Kd4m6cpR1+ U4cr8AgqJhCjLJkcb7A6KvY5FZ1vuC5xvkFtcCxBFLUe+wxFKaEFprwcb4dd1ujeFgO7rZ8a1 S0p/chLvSAOKn1ncxaj9hEhBFmyBsgfg8RLOypOMxFGwjJxOBqtczWlieVr/a0B+7oFiZMg3E j1XqGiZVz5WI5YgWwuwJ4kTYEBM19+PKg0Vo6OXyT+K32ohmsjKJjvlau2NDy05mybYvgyklj 7/m2V0j/Y1WhpLxmLsQ+UBU0kQE8iFrYHhuhPxDQBb9XPf1wxl9nAVhiIGM= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04.07.19 11:02, Florian Eckert wrote: > * 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, > I'd like to ack only the keycode change, but not the deprecated .gpio field. I'll post a separate patch for the keycode change only. --mtx -- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering info@metux.net -- +49-151-27565287