OSDN Git Service

disable synaptic touchpad by default. It simulates a tochscreen and we can not suppor...
authorYi Sun <beyounn@gmail.com>
Tue, 21 Jul 2009 05:00:47 +0000 (22:00 -0700)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 20 Oct 2009 02:47:18 +0000 (10:47 +0800)
Disable it will trigger the system to use generic touchpad driver

drivers/input/mouse/Kconfig
drivers/input/mouse/synaptics.c

index 9705f3a..4d56ff7 100644 (file)
@@ -59,7 +59,7 @@ config MOUSE_PS2_LOGIPS2PP
 
 config MOUSE_PS2_SYNAPTICS
        bool "Synaptics PS/2 mouse protocol extension" if EMBEDDED
-       default y
+       default n
        depends on MOUSE_PS2
        help
          Say Y here if you have a Synaptics PS/2 TouchPad connected to
index f3e4f7b..de6dee4 100644 (file)
@@ -62,6 +62,7 @@ static int synaptics_mode_cmd(struct psmouse *psmouse, unsigned char mode)
 
 int synaptics_detect(struct psmouse *psmouse, int set_properties)
 {
+#ifdef CONFIG_MOUSE_PS2_SYNAPTICS
        struct ps2dev *ps2dev = &psmouse->ps2dev;
        unsigned char param[4];
 
@@ -82,6 +83,9 @@ int synaptics_detect(struct psmouse *psmouse, int set_properties)
        }
 
        return 0;
+#else
+       return -ENODEV;
+#endif
 }
 
 void synaptics_reset(struct psmouse *psmouse)