]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd44174c50ec76290184d665c0c08d961e051c6c2
tree4c3fee0ea7ea7bc5a661b6129b8ba24dd3f525bd
parent180a27b65c214f4efbc177e936fde5f990d1a61b
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