Input: gpio_keys - disable hardware on suspend
authorJonas Aaberg <jonas.aberg@stericsson.com>
Sat, 24 Nov 2012 08:10:29 +0000 (00:10 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 28 Nov 2012 06:40:07 +0000 (22:40 -0800)
commitdda19a92f033399641e47db0b75beb01d001146b
treec2608f4ddc81920f8ba24a6fda12790b63796f9c
parent5b76d7b4cd965a84d922f303fe51a49cca89f9bb
Input: gpio_keys - disable hardware on suspend

Disable hardware if active when suspending if the hw can not
wake the system from suspend.

[Dmitry Torokhov: use input_dev->users instead of a separate flag]

Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
Reviewed-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/gpio_keys.c