linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] HID: hiddev: move hiddev's minor number and refactoring
@ 2017-03-03  8:53 Jaejoong Kim
  2017-03-03  8:54 ` [PATCH v2 1/2] HID: cp2112: use proper hidraw name with minor number Jaejoong Kim
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jaejoong Kim @ 2017-03-03  8:53 UTC (permalink / raw)
  To: jikos, benjamin.tissoires
  Cc: linux-input, linux-kernel, linux-usb, Jaejoong Kim

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(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-21 14:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-03  8:53 [PATCH v2 0/2] HID: hiddev: move hiddev's minor number and refactoring Jaejoong Kim
2017-03-03  8:54 ` [PATCH v2 1/2] HID: cp2112: use proper hidraw name with minor number Jaejoong Kim
2017-03-03  8:54 ` [PATCH v2 2/2] HID: hiddev: reallocate hiddev's " Jaejoong Kim
2017-03-21 14:25 ` [PATCH v2 0/2] HID: hiddev: move hiddev's minor number and refactoring Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).