Skip to content

Commit fa1054a

Browse files
author
Jiri Kosina
committed
Merge branches 'for-3.15/multitouch', 'for-3.15/sony' and 'for-3.15/uhid' into for-linus
4 parents 6cf8c85 + 9abebed + b95dd3c + 4522643 commit fa1054a

File tree

7 files changed

+233
-178
lines changed

7 files changed

+233
-178
lines changed

Documentation/hid/uhid.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ the request was handled successfully.
9393
event to the kernel. The payload is of type struct uhid_create_req and
9494
contains information about your device. You can start I/O now.
9595

96+
UHID_CREATE2:
97+
Same as UHID_CREATE, but the HID report descriptor data (rd_data) is an array
98+
inside struct uhid_create2_req, instead of a pointer to a separate array.
99+
Enables use from languages that don't support pointers, e.g. Python.
100+
96101
UHID_DESTROY:
97102
This destroys the internal HID device. No further I/O will be accepted. There
98103
may still be pending messages that you can receive with read() but no further
@@ -105,6 +110,12 @@ the request was handled successfully.
105110
contains a data-payload. This is the raw data that you read from your device.
106111
The kernel will parse the HID reports and react on it.
107112

113+
UHID_INPUT2:
114+
Same as UHID_INPUT, but the data array is the last field of uhid_input2_req.
115+
Enables userspace to write only the required bytes to kernel (ev.type +
116+
ev.u.input2.size + the part of the data array that matters), instead of
117+
the entire struct uhid_input2_req.
118+
108119
UHID_FEATURE_ANSWER:
109120
If you receive a UHID_FEATURE request you must answer with this request. You
110121
must copy the "id" field from the request into the answer. Set the "err" field

drivers/hid/hid-ids.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767
#define USB_VENDOR_ID_ALPS 0x0433
6868
#define USB_DEVICE_ID_IBM_GAMEPAD 0x1101
6969

70+
#define USB_VENDOR_ID_ANTON 0x1130
71+
#define USB_DEVICE_ID_ANTON_TOUCH_PAD 0x3101
72+
7073
#define USB_VENDOR_ID_APPLE 0x05ac
7174
#define USB_DEVICE_ID_APPLE_MIGHTYMOUSE 0x0304
7275
#define USB_DEVICE_ID_APPLE_MAGICMOUSE 0x030d

0 commit comments

Comments
 (0)