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
72ff490e
Commit
72ff490e
authored
Sep 27, 2002
by
Vojtech Pavlik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes/cleanups after converting drivers to list.h lists.
parent
8c81d480
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
15 deletions
+14
-15
drivers/input/input.c
drivers/input/input.c
+2
-2
drivers/input/keyboard/atkbd.c
drivers/input/keyboard/atkbd.c
+2
-1
drivers/input/mousedev.c
drivers/input/mousedev.c
+10
-12
No files found.
drivers/input/input.c
View file @
72ff490e
...
...
@@ -411,7 +411,7 @@ void input_register_device(struct input_dev *dev)
dev
->
rep
[
REP_PERIOD
]
=
HZ
/
33
;
INIT_LIST_HEAD
(
&
dev
->
h_list
);
list_add_tail
(
&
dev
->
node
,
&
input_dev_list
);
list_add_tail
(
&
dev
->
node
,
&
input_dev_list
);
list_for_each_entry
(
handler
,
&
input_handler_list
,
node
)
if
((
id
=
input_match_device
(
handler
->
id_table
,
dev
)))
...
...
@@ -471,7 +471,7 @@ void input_register_handler(struct input_handler *handler)
if
(
handler
->
fops
!=
NULL
)
input_table
[
handler
->
minor
>>
5
]
=
handler
;
list_add_tail
(
&
handler
->
node
,
&
input_handler_list
);
list_add_tail
(
&
handler
->
node
,
&
input_handler_list
);
list_for_each_entry
(
dev
,
&
input_dev_list
,
node
)
if
((
id
=
input_match_device
(
handler
->
id_table
,
dev
)))
...
...
drivers/input/keyboard/atkbd.c
View file @
72ff490e
...
...
@@ -332,7 +332,8 @@ static int atkbd_set_3(struct atkbd *atkbd)
* Try to set the set we want.
*/
if
(
atkbd_command
(
atkbd
,
&
atkbd_set
,
ATKBD_CMD_SSCANSET
))
param
[
0
]
=
atkbd_set
;
if
(
atkbd_command
(
atkbd
,
param
,
ATKBD_CMD_SSCANSET
))
return
2
;
/*
...
...
drivers/input/mousedev.c
View file @
72ff490e
...
...
@@ -215,6 +215,8 @@ static int mousedev_release(struct inode * inode, struct file * file)
static
int
mousedev_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
struct
mousedev_list
*
list
;
struct
input_handle
*
handle
;
struct
mousedev
*
mousedev
;
int
i
;
#ifdef CONFIG_INPUT_MOUSEDEV_PSAUX
...
...
@@ -237,19 +239,14 @@ static int mousedev_open(struct inode * inode, struct file * file)
if
(
!
list
->
mousedev
->
open
++
)
{
if
(
list
->
mousedev
->
minor
==
MOUSEDEV_MIX
)
{
struct
list_head
*
node
;
list_for_each
(
node
,
&
mousedev_handler
.
h_list
)
{
struct
input_handle
*
handle
=
to_handle_h
(
node
);
struct
mousedev
*
mousedev
=
handle
->
private
;
if
(
!
mousedev
->
open
)
if
(
mousedev
->
exist
)
input_open_device
(
handle
);
list_for_each_entry
(
handle
,
&
mousedev_handler
.
h_list
,
h_node
)
{
mousedev
=
handle
->
private
;
if
(
!
mousedev
->
open
&&
mousedev
->
exist
)
input_open_device
(
handle
);
}
}
else
{
if
(
!
mousedev_mix
.
open
)
if
(
list
->
mousedev
->
exist
)
input_open_device
(
&
list
->
mousedev
->
handle
);
}
}
else
if
(
!
mousedev_mix
.
open
&&
list
->
mousedev
->
exist
)
input_open_device
(
&
list
->
mousedev
->
handle
);
}
return
0
;
...
...
@@ -496,6 +493,7 @@ static int __init mousedev_init(void)
input_register_handler
(
&
mousedev_handler
);
memset
(
&
mousedev_mix
,
0
,
sizeof
(
struct
mousedev
));
INIT_LIST_HEAD
(
&
mousedev_mix
.
list
);
init_waitqueue_head
(
&
mousedev_mix
.
wait
);
mousedev_table
[
MOUSEDEV_MIX
]
=
&
mousedev_mix
;
mousedev_mix
.
exist
=
1
;
...
...
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