OSDN Git Service

staging: nvec: ps2: add suspend/resume functions
authorMarc Dietrich <marvin24@gmx.de>
Mon, 26 Dec 2011 16:57:32 +0000 (17:57 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 31 Jan 2012 18:27:57 +0000 (10:27 -0800)
commitd1b5342c1f5946c2219e4e5bd770b1c1fc186272
tree4c3fee0ea7ea7bc5a661b6129b8ba24dd3f525bd
parent5f356a67ae14033d734f73b79b926f8949300e83
staging: nvec: ps2: add suspend/resume functions

This adds suspend and resume functions to the nvec_ps2 mouse driver.

During suspend the nvec sends a "Cancel all mouse events" command. If
this is missed, there will be still some bytes in the received buffer
after resume which make the mouse go out of sync.

Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Julian Andres Klode <jak@jak-linux.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/nvec/nvec_ps2.c