Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1344658
| From | Geert Uytterhoeven <geert@linux-m68k.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] Input: gpio_keys_polled - keep button data constant |
| Date | 2016-02-26 21:40 +0100 |
| Message-ID | <r6xl8-fl-3@gated-at.bofh.it> (permalink) |
| References | <r6vMm-7w1-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Dmitry,
On Fri, Feb 26, 2016 at 7:50 PM, Dmitry Torokhov
<dmitry.torokhov@gmail.com> wrote:
> Commit 633a21d80b4a ("input: gpio_keys_polled: Add support for GPIO
> descriptors") placed gpio descriptor into gpio_keys_button structure, which
> is supposed to be part of platform data and not modifiable by the driver.
> To keep the data constant, let's move the descriptor to
> gpio_keys_button_data structure instead.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> ---
>
> Compiled only, I do not have devices with polled keys...
If you're on DT, just change "gpio-keys" to "gpio-keys-polled", add
"poll-interval = <20>;", and everything should work fine.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] Input: gpio_keys_polled - keep button data constant Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-02-26 20:00 +0100 Re: [PATCH] Input: gpio_keys_polled - keep button data constant Geert Uytterhoeven <geert@linux-m68k.org> - 2016-02-26 21:40 +0100
csiph-web