* Make synaptics support optional
@ 2003-07-08 10:45 Pavel Machek
2003-07-08 14:08 ` Vojtech Pavlik
2003-07-09 9:55 ` Aaron Lehmann
0 siblings, 2 replies; 4+ messages in thread
From: Pavel Machek @ 2003-07-08 10:45 UTC (permalink / raw)
To: vojtech, kernel list
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?]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Make synaptics support optional
2003-07-08 10:45 Make synaptics support optional Pavel Machek
@ 2003-07-08 14:08 ` Vojtech Pavlik
2003-07-09 9:55 ` Aaron Lehmann
1 sibling, 0 replies; 4+ messages in thread
From: Vojtech Pavlik @ 2003-07-08 14:08 UTC (permalink / raw)
To: Pavel Machek; +Cc: kernel list
On Tue, Jul 08, 2003 at 12:45:51PM +0200, Pavel Machek wrote:
> Hi!
>
> Synaptics support breaks mouse for me (HP omnibook xe3).
Read the kernel config help entry. If you mean external mouse, then
that's in the works.
> I guess it should have its own config option, and perhaps it should be
> marked experimental...
Probably yes.
> What about this patch?
Seems OK.
> 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?]
--
Vojtech Pavlik
SuSE Labs, SuSE CR
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Make synaptics support optional
2003-07-08 10:45 Make synaptics support optional Pavel Machek
2003-07-08 14:08 ` Vojtech Pavlik
@ 2003-07-09 9:55 ` Aaron Lehmann
2003-07-09 11:38 ` Pavel Machek
1 sibling, 1 reply; 4+ messages in thread
From: Aaron Lehmann @ 2003-07-09 9:55 UTC (permalink / raw)
To: Pavel Machek; +Cc: vojtech, kernel list
On Tue, Jul 08, 2003 at 12:45:51PM +0200, Pavel Machek wrote:
> --- /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;
>
Why not adjust the Makefiles?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Make synaptics support optional
2003-07-09 9:55 ` Aaron Lehmann
@ 2003-07-09 11:38 ` Pavel Machek
0 siblings, 0 replies; 4+ messages in thread
From: Pavel Machek @ 2003-07-09 11:38 UTC (permalink / raw)
To: Aaron Lehmann; +Cc: vojtech, kernel list
Hi!
> On Tue, Jul 08, 2003 at 12:45:51PM +0200, Pavel Machek wrote:
> > --- /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;
> >
>
> Why not adjust the Makefiles?
It was that way once in history, but later it was changed to "always
include". I wanted minimal change.
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-07-09 17:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-08 10:45 Make synaptics support optional Pavel Machek
2003-07-08 14:08 ` Vojtech Pavlik
2003-07-09 9:55 ` Aaron Lehmann
2003-07-09 11:38 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).