Skip to content

HID: Convert UHID to new HID transport-layer

David Herrmann linux-input 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12HID: uhid: simplify report-cb shutdowndrivers/hid/uhid.c+2 -90 replies
2/12HID: uhid: forward create_req to create2_reqdrivers/hid/uhid.c+25 -650 replies
3/12HID: uhid: avoid dangling pointers in uhid contextdrivers/hid/uhid.c+11 -50 replies
4/12HID: uhid: avoid magic-numbers when setting stringsdrivers/hid/uhid.c+7 -70 replies
5/12HID: uhid: turn report_id into u32drivers/hid/uhid.c+4 -30 replies
6/12HID: uhid: invert report_done and make non-atomicdrivers/hid/uhid.c+7 -80 replies
7/12HID: uhid: add ABI compatible UHID_GET_REPORT replacing UHID_FEATUREdrivers/hid/uhid.c include/uapi/linux/uhid.h+35 -160 replies
8/12HID: uhid: keep legacy definitions at the bottom of uhid.hinclude/uapi/linux/uhid.h+62 -390 replies
9/12HID: uhid: rename uhid_raw_request to uhid_hid_raw_requestdrivers/hid/uhid.c+16 -160 replies
10/12HID: uhid: implement SET_REPORTdrivers/hid/uhid.c include/uapi/linux/uhid.h+155 -680 replies
11/12HID: uhid: report to user-space whether reports are numbereddrivers/hid/uhid.c include/uapi/linux/uhid.h+31 -10 replies
12/12HID: uhid: update documentationDocumentation/hid/uhid.txt+92 -870 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/12] HID: Convert UHID to new HID transport-layer

Hi

When Benjamin cleanup up the transport layer, he left UHID mostly unconverted due to ABI issues. I promised to take a look, so here're the patches.

Most of the patches are fairly straightforward. Comments welcome. I tested an old uhid-sample.c build and it still works, so I think I didn't break backwards-compatibility.

Thanks
David

David Herrmann (12):
HID: uhid: simplify report-cb shutdown
HID: uhid: forward create_req to create2_req
HID: uhid: avoid dangling pointers in uhid context
HID: uhid: avoid magic-numbers when setting strings
HID: uhid: turn report_id into u32
HID: uhid: invert report_done and make non-atomic
HID: uhid: add ABI compatible UHID_GET_REPORT replacing UHID_FEATURE
HID: uhid: keep legacy definitions at the bottom of uhid.h
HID: uhid: rename uhid_raw_request to uhid_hid_raw_request
HID: uhid: implement SET_REPORT
HID: uhid: report to user-space whether reports are numbered
HID: uhid: update documentation

 Documentation/hid/uhid.txt | 179 ++++++++++----------
 drivers/hid/uhid.c         | 394 +++++++++++++++++++++++++--------------------
 include/uapi/linux/uhid.h  | 120 +++++++++++---
 3 files changed, 408 insertions(+), 285 deletions(-)
Signature · 1 line
2.0.3