Skip to content

HID: hiddev: move hiddev's minor number and refactoring

Jaejoong Kim linux-input lkml 2 versions – Applied

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

  1. v2 Latest2 patches 1 replyApplied
  2. v11 patch 2 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2HID: cp2112: use proper hidraw name with minor numberdrivers/hid/hid-cp2112.c+3 -10 replies
2/2HID: hiddev: reallocate hiddev's minor numberdrivers/hid/hid-core.c drivers/hid/usbhid/hiddev.c include/linux/hid.h +1 more+16 -130 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBenjamin Tissoires
1/2R-b
2/2R-b

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

Read the v2 thread

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