HID: uhid: allow feeding input data into uhid devices
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 10 Jun 2012 13:16:19 +0000 (15:16 +0200)
committerColin Cross <ccross@android.com>
Thu, 16 Aug 2012 19:44:28 +0000 (12:44 -0700)
commite0ad83067d9899b8cf47fcfc0c68a5bacf6265ec
tree9013bf5559554841495d6eabbe227b4b4b191655
parent6b1a4c7c9a0839648d970d7fe1ecba9a31ca87c2
HID: uhid: allow feeding input data into uhid devices

This adds a new event type UHID_INPUT which allows user-space to feed raw
HID reports into the HID subsystem. We copy the data into kernel memory
and directly feed it into the HID core.

There is no error handling of the events couldn't be parsed so user-space
should consider all events successfull unless read() returns an error.

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