Input: gpio_keys - scan gpio state at probe and resume time
authorDaniel Mack <daniel@caiaq.de>
Mon, 30 Nov 2009 08:04:02 +0000 (00:04 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 30 Nov 2009 08:05:20 +0000 (00:05 -0800)
commit6ee88d713fb75ab191515f66edffa4e866386565
treee1d5230d0d6ce85f4194e2744c5318e63fa2f190
parent21cea58e49cf59e7c77ce2a01be432458e9f99a9
Input: gpio_keys - scan gpio state at probe and resume time

We need to read and report gpio state when we bind the driver to the
device and upon resume so that userspace has correct state of the
switches (and keys but they are less important since, even if they
are happened to be pressed, we'd expect them to be released fairly
soon).

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/gpio_keys.c