]> Pileus Git - ~andy/linux/commit
HID: hid-mosart: support suspend/resume
authorBenjamin Tissoires <benjamin.tissoires@enac.fr>
Mon, 13 Dec 2010 14:59:13 +0000 (15:59 +0100)
committerJiri Kosina <jkosina@suse.cz>
Tue, 14 Dec 2010 10:40:51 +0000 (11:40 +0100)
commitc25bcd340033bf5b8dc30c16a99e64259f099446
tree0fb99db0208660e188494f8d0d1bf23c5cec0388
parentad6d42670279da8f33f633f8a96a67cd7ef3b1da
HID: hid-mosart: support suspend/resume

The device has 2 modes. The first one is an emulation of a touchscreen
by sending left and right button, and the second mode is the one used in
dual-touch (sending trackingID, touch and else).

In case of a suspend/resume, the device switch back to the first mode
described above (with left and right buttons).
This adds a hook in .reset_resume for the device to be switched to
the correct mode (I just copied the code in mosart_probe).

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@enac.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-mosart.c