diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-10-20 01:36:19 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-11-08 01:24:29 +0100 |
commit | ea6aabf877d82fe10627f40069e0f3d412706a8a (patch) | |
tree | 7b9897bf407bb24e242333c436070f7348936c12 /drivers/input/keyboard/gpio_keys.c | |
parent | Input: gpio_keys_polled - keep button data constant (diff) | |
download | linux-ea6aabf877d82fe10627f40069e0f3d412706a8a.tar.xz linux-ea6aabf877d82fe10627f40069e0f3d412706a8a.zip |
Input: gpio_keys_polled - always use gpiod_get_value_cansleep
It does not matter if given GPIO may sleep or not when reading state,
polling is always done in a non-atomic context, so we should always
be able to simply use gpiod_get_value_cansleep().
Also let's note in the logs when we fail to read gpio state.
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/keyboard/gpio_keys.c')
0 files changed, 0 insertions, 0 deletions