HID: Add Support for Setting and Getting Feature Reports from hidraw
authorAlan Ott <alan@signal11.us>
Tue, 18 Jan 2011 08:04:39 +0000 (03:04 -0500)
committerJiri Kosina <jkosina@suse.cz>
Fri, 11 Feb 2011 14:05:49 +0000 (15:05 +0100)
commitb4dbde9da8ece42bbe4c70c26bac3b28dd6a3ddb
treefde6ca709962906877c25e0910d67ca5c00beb74
parent0825411ade21a39ac63b3e011d092b1f95b5f3f5
HID: Add Support for Setting and Getting Feature Reports from hidraw

Per the HID Specification, Feature reports must be sent and received on
the Configuration endpoint (EP 0) through the Set_Report/Get_Report
interfaces.  This patch adds two ioctls to hidraw to set and get feature
reports to and from the device.  Modifications were made to hidraw and
usbhid.

New hidraw ioctls:
  HIDIOCSFEATURE - Perform a Set_Report transfer of a Feature report.
  HIDIOCGFEATURE - Perform a Get_Report transfer of a Feature report.

Signed-off-by: Alan Ott <alan@signal11.us>
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hidraw.c
drivers/hid/usbhid/hid-core.c
include/linux/hid.h
include/linux/hidraw.h