]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
Input: gpio_keys_polled - request GPIO pin as input.
authorVincent Pelletier <plr.vincent@gmail.com>
Thu, 20 Aug 2015 19:00:19 +0000 (12:00 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 20 Aug 2015 19:07:37 +0000 (12:07 -0700)
commit1ae5ddb6f8837558928a1a694c7b8af7f09fdd21
treece1d2c69953e2bd3ddea047ca60b4a1e266629f2
parent6b30c73e9f37183ad60c7f7050acf8e8edf91e9c
Input: gpio_keys_polled - request GPIO pin as input.

GPIOF_IN flag was lost in:
Commit 633a21d80b4a("input: gpio_keys_polled: Add support for GPIO
descriptors").

Without this flag, legacy code path (for non-descriptor GPIO declarations)
would configure GPIO as output (0 meaning GPIOF_DIR_OUT | GPIOF_INIT_LOW).

Cc: stable@vger.kernel.org
Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/gpio_keys_polled.c