Input: add generic suspend and resume for input devices

Automatically turn off leds and sound effects as part of suspend
process and restore led state, sounds and repeat rate at resume.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
Dmitry Torokhov 2009-09-16 01:06:43 -07:00
parent 181d683d75
commit ffd0db9719
2 changed files with 64 additions and 2 deletions

View file

@ -1123,7 +1123,7 @@ struct input_dev {
struct mutex mutex;
unsigned int users;
int going_away;
bool going_away;
struct device dev;