HID: hiddev: move hiddev's minor number and refactoring
Status from this message: Applied to for-4.12/hiddev. Thanks,
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 1 replyApplied
- v11 patch 2 repliesSuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | HID: cp2112: use proper hidraw name with minor numberdrivers/ | +3 | 0 replies | |
| 2/2 | HID: hiddev: reallocate hiddev's minor numberdrivers/ drivers/ include/ +1 more | +16 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Benjamin Tissoires |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] HID: hiddev: move hiddev's minor number and refactoring
Hi all,
I found hiddev's minor number is always zero in struct hid_device. So, store the minor number asked from usb core in struct hid_device.
This is my first approach.
But after reviewed from Bendjamin, he suggested that it would make sense to store a minor number in struct hiddev like hidraw if it neeeded.
So, I move the minor number from hid_device to hiddev and do some refactoring to access struct hiddev in hid-core
Chanes in v2:
- cp2112: tie in this series
- hiddev: rollback struct hiddev_list exported
squash this patch in a seperate patch
Jaejoong Kim (2):
HID: cp2112: use proper hidraw name with minor number
HID: hiddev: reallocate hiddev's minor number
drivers/hid/hid-core.c | 2 +- drivers/hid/hid-cp2112.c | 4 +++- drivers/hid/usbhid/hiddev.c | 15 ++++----------- include/linux/hid.h | 1 - include/linux/hiddev.h | 11 +++++++++++ 5 files changed, 19 insertions(+), 14 deletions(-)
Signature · 1 line
2.7.4