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
nexedi
linux
Commits
53f5dc3f
Commit
53f5dc3f
authored
Jan 18, 2004
by
Adam Kropelin
Committed by
Vojtech Pavlik
Jan 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: Always wait for hid request completion in hiddev before returning
to the caller process.
parent
dd4de410
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
drivers/usb/input/hid.h
drivers/usb/input/hid.h
+1
-0
drivers/usb/input/hiddev.c
drivers/usb/input/hiddev.c
+1
-0
No files found.
drivers/usb/input/hid.h
View file @
53f5dc3f
...
...
@@ -448,6 +448,7 @@ int hid_set_field(struct hid_field *, unsigned, __s32);
void
hid_submit_report
(
struct
hid_device
*
,
struct
hid_report
*
,
unsigned
char
dir
);
void
hid_init_reports
(
struct
hid_device
*
hid
);
int
hid_find_report_by_usage
(
struct
hid_device
*
hid
,
__u32
wanted_usage
,
struct
hid_report
**
report
,
int
type
);
int
hid_wait_io
(
struct
hid_device
*
hid
);
#ifdef CONFIG_HID_FF
...
...
drivers/usb/input/hiddev.c
View file @
53f5dc3f
...
...
@@ -509,6 +509,7 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd
return
-
EINVAL
;
hid_submit_report
(
hid
,
report
,
USB_DIR_IN
);
hid_wait_io
(
hid
);
return
0
;
...
...
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