]> Pileus Git - ~andy/linux/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)
commitc87019e41d61f3f972bd2f6a2380fc9896e4ab74
tree2421fedddd8ea2a35d8113c5f3a4cdc76bd231b0
parent2cb5e4bc530471e9596cd32390bf70c8ada13d9a
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