]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wiimote: Add wiimote send function
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 5 Jul 2011 11:45:13 +0000 (13:45 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 11 Jul 2011 12:30:23 +0000 (14:30 +0200)
commit2f1240a715ebf79e8b91391e1c627dbac6dfe67a
tree8f0cb775065243e53458d0cfdda9bc19061d695f
parent6114645e9e9576fbdb7054b07526f7189f208d0f
HID: wiimote: Add wiimote send function

The wiimote driver needs to send raw output reports to the wiimote
device. Otherwise we could not manage the peripherals of the wiimote
or perform memory operations on the wiimote.
We cannot use hidinput_input_event of the lowlevel hid driver, since
this does not accept raw input. Therefore, we need to use the same
function that hidraw uses to send output. Side effect is, the raw
output function is not buffered and can sleep.

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