]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wiimote: Add status and return request handlers
authorDavid Herrmann <dh.herrmann@googlemail.com>
Wed, 17 Aug 2011 09:43:24 +0000 (11:43 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 23 Aug 2011 08:55:45 +0000 (10:55 +0200)
commit940a6b72b7498caabe21cc652af44f50e8477a90
tree2421fedddd8ea2a35d8113c5f3a4cdc76bd231b0
parent1214cfdd26ade7c76ff9cb24cc34ffcfcb96ad8d
HID: wiimote: Add status and return request handlers

The wiimote resets the current drm when an extension is plugged in.
Fortunately, it also sends a status report in this situation so we just
reset the drm on every status report to keep the drm consistent.

Also handle return reports from the wiimote which indicate success and
failure of requests that we've sent.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-wiimote.c