lkml.org 
[lkml]   [2003]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectMake synaptics support optional
Hi!

Synaptics support breaks mouse for me (HP omnibook xe3). I guess it
should have its own config option, and perhaps it should be marked
experimental...

What about this patch?
Pavel

--- /usr/src/tmp/linux/drivers/input/mouse/Kconfig 2003-06-24 12:27:47.000000000 +0200
+++ /usr/src/linux/drivers/input/mouse/Kconfig 2003-07-08 12:33:47.000000000 +0200
@@ -30,6 +30,12 @@
The module will be called psmouse. If you want to compile it as a
module, say M here and read <file:Documentation/modules.txt>.

+config MOUSE_SYNAPTICS
+ tristate "Synaptics touchpad support"
+ depends on INPUT_MOUSE && MOUSE_PS2
+ help
+ Say Y if you want your touchpad not to work any more.
+
config MOUSE_SERIAL
tristate "Serial mouse"
depends on INPUT && INPUT_MOUSE && SERIO
@@ -134,4 +140,3 @@
inserted in and removed from the running kernel whenever you want).
The module will be called logibm.o. If you want to compile it as a
module, say M here and read <file.:Documentation/modules.txt>.
-
--- /usr/src/tmp/linux/drivers/input/mouse/synaptics.c 2003-06-24 12:27:47.000000000 +0200
+++ /usr/src/linux/drivers/input/mouse/synaptics.c 2003-07-08 12:32:36.000000000 +0200
@@ -213,6 +213,9 @@
{
struct synaptics_data *priv;

+#ifndef CONFIG_MOUSE_SYNAPTICS
+ return -1;
+#endif;
psmouse->private = priv = kmalloc(sizeof(struct synaptics_data), GFP_KERNEL);
if (!priv)
return -1;
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.094 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site