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
1fce5019
Commit
1fce5019
authored
Sep 18, 2003
by
Peter Osterlund
Committed by
Vojtech Pavlik
Sep 18, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
synaptics.c, psmouse-base.c:
input: Restore synaptics pad mode on module unload.
parent
3ad142f9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
drivers/input/mouse/psmouse-base.c
drivers/input/mouse/psmouse-base.c
+2
-1
drivers/input/mouse/synaptics.c
drivers/input/mouse/synaptics.c
+5
-2
No files found.
drivers/input/mouse/psmouse-base.c
View file @
1fce5019
...
...
@@ -478,9 +478,10 @@ static void psmouse_cleanup(struct serio *serio)
static
void
psmouse_disconnect
(
struct
serio
*
serio
)
{
struct
psmouse
*
psmouse
=
serio
->
private
;
if
(
psmouse
->
type
==
PSMOUSE_SYNAPTICS
)
synaptics_disconnect
(
psmouse
);
input_unregister_device
(
&
psmouse
->
dev
);
serio_close
(
serio
);
synaptics_disconnect
(
psmouse
);
kfree
(
psmouse
);
}
...
...
drivers/input/mouse/synaptics.c
View file @
1fce5019
...
...
@@ -144,7 +144,7 @@ static int synaptics_enable_device(struct psmouse *psmouse)
static
void
print_ident
(
struct
synaptics_data
*
priv
)
{
printk
(
KERN_INFO
"Synaptics Touchpad, model: %ld
\n
"
,
SYN_ID_MODEL
(
priv
->
identity
));
printk
(
KERN_INFO
" Firware: %ld.%ld
\n
"
,
SYN_ID_MAJOR
(
priv
->
identity
),
printk
(
KERN_INFO
" Fir
m
ware: %ld.%ld
\n
"
,
SYN_ID_MAJOR
(
priv
->
identity
),
SYN_ID_MINOR
(
priv
->
identity
));
if
(
SYN_MODEL_ROT180
(
priv
->
model_id
))
...
...
@@ -228,7 +228,7 @@ int synaptics_init(struct psmouse *psmouse)
/*
* The x/y limits are taken from the Synaptics TouchPad interfacing Guide,
* which says that they should be valid regardless of the actual size of
* the sens
e
r.
* the sens
o
r.
*/
set_bit
(
EV_ABS
,
psmouse
->
dev
.
evbit
);
set_abs_params
(
&
psmouse
->
dev
,
ABS_X
,
1472
,
5472
,
0
,
0
);
...
...
@@ -259,6 +259,9 @@ void synaptics_disconnect(struct psmouse *psmouse)
{
struct
synaptics_data
*
priv
=
psmouse
->
private
;
/* Restore touchpad to power on default state */
synaptics_set_mode
(
psmouse
,
0
);
kfree
(
priv
);
}
...
...
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