[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YEJ7DD3rLAh3Twdl@google.com>
Date: Fri, 5 Mar 2021 10:40:12 -0800
From: Dmitry Torokhov <dmitry.torokhov@...il.com>
To: Paul Cercueil <paul@...pouillou.net>
Cc: od@...c.me, linux-input@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/3] input: gpio-keys: Remove extra call to input_sync
On Fri, Mar 05, 2021 at 05:01:09PM +0000, Paul Cercueil wrote:
> The input_sync() function will already be called within
> gpio_keys_gpio_report_event(), so there's no need to call it again after
> the loop in gpio_keys_report_state().
I'd probably go other way around and remove the sync from
gpio_keys_report_state() and add one to gpio_keys_gpio_work_func() so
that we do not have to send bunch of input_sync() when there are several
keys/buttons.
Thanks.
--
Dmitry
Powered by blists - more mailing lists