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
8bc73fc9
Commit
8bc73fc9
authored
Jul 25, 2002
by
Vojtech Pavlik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small cleanup in evdev.c, which copies the data directly from
input struct to userspace.
parent
2f39a668
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
drivers/input/evdev.c
drivers/input/evdev.c
+1
-7
No files found.
drivers/input/evdev.c
View file @
8bc73fc9
...
@@ -233,7 +233,6 @@ static int evdev_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
...
@@ -233,7 +233,6 @@ static int evdev_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
struct
evdev_list
*
list
=
file
->
private_data
;
struct
evdev_list
*
list
=
file
->
private_data
;
struct
evdev
*
evdev
=
list
->
evdev
;
struct
evdev
*
evdev
=
list
->
evdev
;
struct
input_dev
*
dev
=
evdev
->
handle
.
dev
;
struct
input_dev
*
dev
=
evdev
->
handle
.
dev
;
struct
input_devinfo
id
;
int
retval
,
t
,
u
;
int
retval
,
t
,
u
;
if
(
!
evdev
->
exist
)
return
-
ENODEV
;
if
(
!
evdev
->
exist
)
return
-
ENODEV
;
...
@@ -244,12 +243,7 @@ static int evdev_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
...
@@ -244,12 +243,7 @@ static int evdev_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
return
put_user
(
EV_VERSION
,
(
int
*
)
arg
);
return
put_user
(
EV_VERSION
,
(
int
*
)
arg
);
case
EVIOCGID
:
case
EVIOCGID
:
id
.
bustype
=
dev
->
id
.
bustype
;
return
copy_to_user
((
void
*
)
arg
,
&
dev
->
id
,
sizeof
(
struct
input_devinfo
));
id
.
vendor
=
dev
->
id
.
vendor
;
id
.
product
=
dev
->
id
.
product
;
id
.
version
=
dev
->
id
.
version
;
return
copy_to_user
((
void
*
)
arg
,
&
id
,
sizeof
(
struct
input_devinfo
));
case
EVIOCGREP
:
case
EVIOCGREP
:
if
((
retval
=
put_user
(
dev
->
rep
[
0
],
((
int
*
)
arg
)
+
0
)))
return
retval
;
if
((
retval
=
put_user
(
dev
->
rep
[
0
],
((
int
*
)
arg
)
+
0
)))
return
retval
;
...
...
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