summaryrefslogtreecommitdiff
path: root/alpscomm.c
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2004-07-30 03:16:59 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:02:41 +0200
commit90377b8c1b279cc5cc023a27cc2670bf911b76d7 (patch)
treeed75d5ca7f9e5a387cb82cfa57f123963571a855 /alpscomm.c
parentf40f3d451ef883f53a43d9714c13e578598d9cee (diff)
Use generic ps2 functions in alpscomm.c instead of synaptics
specific functions.
Diffstat (limited to 'alpscomm.c')
-rw-r--r--alpscomm.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/alpscomm.c b/alpscomm.c
index 481f4c6..b7d385d 100644
--- a/alpscomm.c
+++ b/alpscomm.c
@@ -30,11 +30,12 @@
static void
ALPS_initialize(int fd)
{
- ps2_synaptics_disable_device(fd);
- ps2_synaptics_disable_device(fd);
- ps2_synaptics_disable_device(fd);
- ps2_synaptics_disable_device(fd);
- ps2_synaptics_enable_device(fd);
+ xf86FlushInput(fd);
+ ps2_putbyte(fd, PS2_CMD_DISABLE);
+ ps2_putbyte(fd, PS2_CMD_DISABLE);
+ ps2_putbyte(fd, PS2_CMD_DISABLE);
+ ps2_putbyte(fd, PS2_CMD_DISABLE);
+ ps2_putbyte(fd, PS2_CMD_ENABLE);
}
static void