Skip to content

HID: spring cleaning

Benjamin Tissoires linux-input lkml 1 version NAK

Status from this message: NAK, that does not work with BT. hidp_output_raw_report() can do both,

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 19 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/11HID: uHID: implement .raw_requestdrivers/hid/uhid.c+17 -02 replies
2/11HID: i2c-hid: implement ll_driver transport-layer callbacksdrivers/hid/i2c-hid/i2c-hid.c+24 -02 replies
3/11HID: add inliners for ll_driver transport-layer callbacksinclude/linux/hid.h+45 -01 reply
4/11HID: logitech-dj: remove hidinput_input_eventdrivers/hid/hid-logitech-dj.c+35 -643 replies
5/11HID: HIDp: remove hidp_hidinput_eventnet/bluetooth/hidp/core.c+0 -462 replies
6/11HID: remove hidinput_input_event handlerdrivers/hid/hid-input.c include/linux/hid.h+1 -71 reply
7/11HID: HIDp: remove duplicated codednet/bluetooth/hidp/core.c+11 -573 replies
8/11HID: usbhid: remove duplicated codedrivers/hid/usbhid/hid-core.c+11 -531 reply
9/11HID: remove hid_get_raw_report in struct hid_devicedrivers/hid/hid-input.c drivers/hid/hid-sony.c drivers/hid/hidraw.c +5 more+9 -141 reply
10/11HID: introduce helper to access hid_output_raw_report()drivers/hid/hid-input.c drivers/hid/hid-lg.c drivers/hid/hid-logitech-dj.c +7 more+37 -201 reply
11/11HID: move hid_output_raw_report to hid_ll_driverdrivers/hid/hid-input.c drivers/hid/hid-logitech-dj.c drivers/hid/hid-sony.c +7 more+26 -140 replies

Reviews trailers per patch

7 of 11 patches have a Reviewed-by or Acked-by.

PatchDavid Herrmann
1/11
2/11
3/11R-b
4/11
5/11R-b
6/11R-b
7/11R-b
8/11R-b
9/11R-b
10/11R-b
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/11] HID: spring cleaning

Hi guys,

This is an attempt to complete the branch for-3.15/ll-driver-new-callbacks:
- try to implement as much as possible ll_driver callbacks (some are still missing, but I did not had the time to complete it)
- add inliners hid_hw_* for all the ll_driver callbacks
- remove transport dependant callbacks in struct hid_device
- remove the so called "obsolete" hidinput_input_event handler which was used in 2/4 transport drivers

Bonus point: 14 files changed, 213 insertions(+), 272 deletions(-) Yay!

I made sure I kept the PS3 controller working and the LEDs (on logitech-dj and on bluetooth keyboard) working. The rest do not mostly need further testing, the code path did not changed. But still, a review (and some tests) would be a good idea :)

Cheers,
Benjamin

PS: obviously, this goes on top on the branch for-3.15/ll-driver-new-callbacks

Benjamin Tissoires (11):
HID: uHID: implement .raw_request
HID: i2c-hid: implement ll_driver transport-layer callbacks
HID: add inliners for ll_driver transport-layer callbacks
HID: logitech-dj: remove hidinput_input_event
HID: HIDp: remove hidp_hidinput_event
HID: remove hidinput_input_event handler
HID: HIDp: remove duplicated coded
HID: usbhid: remove duplicated code
HID: remove hid_get_raw_report in struct hid_device
HID: introduce helper to access hid_output_raw_report()
HID: move hid_output_raw_report to hid_ll_driver

 drivers/hid/hid-input.c        |  12 ++---
 drivers/hid/hid-lg.c           |   6 ++-
 drivers/hid/hid-logitech-dj.c  | 101 +++++++++++++---------------------
 drivers/hid/hid-magicmouse.c   |   2 +-
 drivers/hid/hid-sony.c         |  19 +++++--
 drivers/hid/hid-thingm.c       |   4 +-
 drivers/hid/hid-wacom.c        |  16 +++---
 drivers/hid/hid-wiimote-core.c |   4 +-
 drivers/hid/hidraw.c           |  11 ++--
 drivers/hid/i2c-hid/i2c-hid.c  |  27 +++++++++-
 drivers/hid/uhid.c             |  20 ++++++-
 drivers/hid/usbhid/hid-core.c  |  67 +++++------------------
 include/linux/hid.h            |  77 ++++++++++++++++++++++----
 net/bluetooth/hidp/core.c      | 119 +++++------------------------------------
 14 files changed, 213 insertions(+), 272 deletions(-)
Signature · 1 line
1.8.3.1