]> 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)
commit2d210d620d51a094ab7b990e54a9ec0b135a0ecb
tree2421fedddd8ea2a35d8113c5f3a4cdc76bd231b0
parent4c9c2adc2f55e9434466183096783727541edea1
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