HID: uhid: add UHID_CREATE and UHID_DESTROY events
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 10 Jun 2012 13:16:18 +0000 (15:16 +0200)
committerColin Cross <ccross@android.com>
Thu, 16 Aug 2012 19:44:28 +0000 (12:44 -0700)
commit6b1a4c7c9a0839648d970d7fe1ecba9a31ca87c2
treef27a1a56c2122a62ff082b7b9db8d19e4c630783
parentd3444a842acc1113febe0ebade74fe18aa99dfee
HID: uhid: add UHID_CREATE and UHID_DESTROY events

UHID_CREATE and UHID_DESTROY are used to create and destroy a device on an
open uhid char-device. Internally, we allocate and register an HID device
with the HID core and immediately start the device. From now on events may
be received or sent to the device.

The UHID_CREATE event has a payload similar to the data used by
Bluetooth-HIDP when creating a new connection.

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