lkml.org 
[lkml]   [2017]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/2] HID: hiddev: move hiddev's minor number and refactoring
Date
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

\
 
 \ /
  Last update: 2017-03-03 10:18    [W:0.042 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site