Received: by 10.223.185.111 with SMTP id b44csp1649439wrg; Sat, 10 Mar 2018 10:34:58 -0800 (PST) X-Google-Smtp-Source: AG47ELuuuYwZeVhOFbCp0CgTU9gekm1rzAPyWH4q/usOtoR8riMoawF/yzFBjkC0xeoCMvMqOF1J X-Received: by 10.98.41.134 with SMTP id p128mr2724148pfp.120.1520706897985; Sat, 10 Mar 2018 10:34:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520706897; cv=none; d=google.com; s=arc-20160816; b=tq528xB+SAoot8XbeJ5prRTjYahPUTzcX9zdxsBe6W4rLJy6OWYI7bTlfqgsG5SAV5 7wSsCsyWLiJ83rZGj5FgXh0hzQsBlTc+dVh0z/tGcFDZOQ7Gze0DBNOZHcBTZYcAvouu oH9LUkEqwjGXhVHP6HgeNrIZdsl8XhsCKXvcOJ376AUCNNmCuX/H5JMoDMB3x0kthnmo AQcfWH11GwuTIy16vLxwoxcGLfrMzbMCqfX44s81d40VBXxZAFcw/Wnuy+JQa0UStD0Y EelxH5kxPAGlzCTINQCWJxuSvXfiw6PeHAqxEYA3ZUyfdMEvHHd/6GwRJoeXqpBLoQcd XmMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=R8FBQr2wCOhhu1GVhovejOhyMXM66VFH4uJo/Bm48Og=; b=Un3iWlWDt4I4YbWJNcrWfpc4MAYzMOKCMh42f78/0dSj0v142nl0lUX9EZ27ENRVkT iK2nBFfK4OxczQNThUtlktO/DY88TbwMH2+JoBTca/bCl0WEW7UjVZL7JtYSOWpyGoM8 DAu/Kgx0ZcuUow62O1GRfoPZzOUSadoWAuXO66Y6l5Ljj+ImLrm8DV2740HA7DyoTObW xmG19Lsj7JT66bUsjUKsi4UwO5h9TyR1B7uq4HHYfpYUC6UBblTf5bhmzUy6ujE2oGCa rUZ/aodl0XpE5G8qZT8pn83aeWHI1jJH3wn46vsBo9y2f4jgzhievJHqn36kkFYSbJuE oi9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=g9mqvIGi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e18si2576641pgv.684.2018.03.10.10.34.43; Sat, 10 Mar 2018 10:34:57 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=g9mqvIGi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932271AbeCJScl (ORCPT + 99 others); Sat, 10 Mar 2018 13:32:41 -0500 Received: from mail-qt0-f172.google.com ([209.85.216.172]:36284 "EHLO mail-qt0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751616AbeCJScW (ORCPT ); Sat, 10 Mar 2018 13:32:22 -0500 Received: by mail-qt0-f172.google.com with SMTP id c7so14725628qtn.3; Sat, 10 Mar 2018 10:32:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=R8FBQr2wCOhhu1GVhovejOhyMXM66VFH4uJo/Bm48Og=; b=g9mqvIGiPIM+PZOsgc1EmtwkayQug5yUki5E/0AcNzvflaYfv+C7XRKgOFo2uCI4NA F9V3MrtEsjUA3shK6TMvzgkp/pmhQ4AGi+EX/CORFI8RNuOGNyqLrt0U1W4n4gO82we+ q0k3D8p9Rds6kG1UonQiIBLV4wl0HKTvBxUZ5SSNigaS2ab/4qko9RD7zBlNI2Tywpes g2BhD6HvqpPx3DaU+wawvS9hC2FI0ABprVKd4CxSG+NAIyHr3P3vL3xJ4dXNPYTWFOp4 6cY80v+7gQJHjQoC826k2l0PtEv4t2f2WhbBm1l2KAwF0Ld+EwzhmQAixL9v1E8UGyDq la3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=R8FBQr2wCOhhu1GVhovejOhyMXM66VFH4uJo/Bm48Og=; b=FyM9hv22SZQTSxPGjhasYwGjZD/7BsnavbaSflu+BJqCGaz8ayrhRNQEB3DYLJpgTL J2eAtdBzNlgEhYK7iMO1uSn7Uq8wP5UHK2ldKcZw8jdXV4Mn5lHnB/owQq/gfx3D8rGD a86iRLsWmSVaMjF1m6d5hnT7T47ZtNTA/f3ke2pTyuZ0hMcYFwT3MThCBsmbsDIeaJ17 1fbfaPKQX/2d50J42q0wZJnNDwj51+e+x1YuJx8DwXtsXribDx4qPVQmVrlBVZwBFZCR XOLHV0tVNWbLVPHyb/rVNI7VVRzOZR/3IolQBqj/qkwxuXsnHsLdrbK6RWBiA3bEWeO8 p+Yg== X-Gm-Message-State: AElRT7FR8rPilKgV6Ix3IjXSV1Rao5kyGzuLgp23z4iQcugqIgCiGecn /OlmC7ufqqJL+sP3oCMgwwKEdO89MPlFaaSUhdw= X-Received: by 10.200.39.217 with SMTP id x25mr4047956qtx.266.1520706741903; Sat, 10 Mar 2018 10:32:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.195.80 with HTTP; Sat, 10 Mar 2018 10:32:20 -0800 (PST) In-Reply-To: <20180310181509.GB260013@dtor-ws> References: <20180308073213.8419-1-jeffy.chen@rock-chips.com> <20180308073213.8419-2-jeffy.chen@rock-chips.com> <20180310181509.GB260013@dtor-ws> From: Andy Shevchenko Date: Sat, 10 Mar 2018 20:32:20 +0200 Message-ID: Subject: Re: [PATCH v5 1/3] Input: gpio-keys - add support for wakeup event action To: Dmitry Torokhov Cc: Jeffy Chen , Linux Kernel Mailing List , Brian Norris , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Dmitry Torokhov , Douglas Anderson , devicetree , Guenter Roeck , Thomas Gleixner , Joseph Lo , stephen lu , Rob Herring , Kate Stewart , linux-input , Greg Kroah-Hartman , Mark Rutland , Philippe Ombredanne , Arvind Yadav Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 10, 2018 at 8:15 PM, Dmitry Torokhov wrote: > + while (--i >= 0) { Just in case while (i--) { is slightly better to read. > + bdata = &ddata->data[i]; > + if (bdata->button->wakeup) > + gpio_keys_button_disable_wakeup(bdata); > + bdata->suspended = false; > + } -- With Best Regards, Andy Shevchenko