Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
609088f5
Commit
609088f5
authored
Jan 19, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB: hook up the HID device's struct device to the input system properly.
parent
93cab357
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
drivers/usb/input/hid-core.c
drivers/usb/input/hid-core.c
+1
-0
drivers/usb/input/hid-input.c
drivers/usb/input/hid-input.c
+1
-0
drivers/usb/input/hid.h
drivers/usb/input/hid.h
+1
-0
No files found.
drivers/usb/input/hid-core.c
View file @
609088f5
...
...
@@ -1546,6 +1546,7 @@ static struct hid_device *usb_hid_configure(struct usb_interface *intf)
hid
->
version
=
le16_to_cpu
(
hdesc
->
bcdHID
);
hid
->
country
=
hdesc
->
bCountryCode
;
hid
->
dev
=
dev
;
hid
->
intf
=
intf
;
hid
->
ifnum
=
interface
->
desc
.
bInterfaceNumber
;
hid
->
name
[
0
]
=
0
;
...
...
drivers/usb/input/hid-input.c
View file @
609088f5
...
...
@@ -592,6 +592,7 @@ int hidinput_connect(struct hid_device *hid)
hidinput
->
input
.
id
.
vendor
=
dev
->
descriptor
.
idVendor
;
hidinput
->
input
.
id
.
product
=
dev
->
descriptor
.
idProduct
;
hidinput
->
input
.
id
.
version
=
dev
->
descriptor
.
bcdDevice
;
hidinput
->
input
.
dev
=
&
hid
->
intf
->
dev
;
}
for
(
i
=
0
;
i
<
report
->
maxfield
;
i
++
)
...
...
drivers/usb/input/hid.h
View file @
609088f5
...
...
@@ -342,6 +342,7 @@ struct hid_device { /* device report descriptor */
struct
hid_report_enum
report_enum
[
HID_REPORT_TYPES
];
struct
usb_device
*
dev
;
/* USB device */
struct
usb_interface
*
intf
;
/* USB interface */
int
ifnum
;
/* USB interface number */
unsigned
long
iofl
;
/* I/O flags (CTRL_RUNNING, OUT_RUNNING) */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment