From: Dmitry Torokhov <dtor_core@ameritech.net>
To: Vojtech Pavlik <vojtech@suse.cz>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/7] psmouse option parsing
Date: Sat, 3 Jan 2004 04:00:54 -0500 [thread overview]
Message-ID: <200401030400.55755.dtor_core@ameritech.net> (raw)
In-Reply-To: <200401030357.44852.dtor_core@ameritech.net>
===================================================================
ChangeSet@1.1573, 2004-01-02 03:02:35-05:00, dtor_core@ameritech.net
Input: With Vojtech's approval adjusted psmouse option names by
dropping psmouse_ prefix.
If psmouse is compiled as a module new option names are:
proto, rate, resetafter, resolution, smartscroll
If psmouse is built in the kernel the prefix "psmouse." is
required in front of an option, like "psmouse.proto"
Also, since we are changing all names, killed psmouse_noext
completely
Documentation/kernel-parameters.txt | 12 +++++++++---
drivers/input/mouse/psmouse-base.c | 30 ++++++++++--------------------
2 files changed, 19 insertions(+), 23 deletions(-)
===================================================================
diff -Nru a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
--- a/Documentation/kernel-parameters.txt Sat Jan 3 03:08:40 2004
+++ b/Documentation/kernel-parameters.txt Sat Jan 3 03:08:40 2004
@@ -797,12 +797,18 @@
before loading.
See Documentation/ramdisk.txt.
- psmouse_proto= [HW,MOUSE] Highest PS2 mouse protocol extension to
+ psmouse.proto= [HW,MOUSE] Highest PS2 mouse protocol extension to
probe for (bare|imps|exps).
-
- psmouse_resetafter=
+ psmouse.rate= [HW,MOUSE] Set desired mouse report rate, in reports
+ per second.
+ psmouse.resetafter=
[HW,MOUSE] Try to reset Synaptics Touchpad after so many
bad packets (0 = never).
+ psmouse.resolution=
+ [HW,MOUSE] Set desired mouse resolution, in dpi.
+ psmouse.smartscroll=
+ [HW,MOUSE] Controls Logitech smartscroll autoreteat,
+ 0 = disabled, 1 = enabled (default).
pss= [HW,OSS] Personal Sound System (ECHO ESC614)
Format: <io>,<mss_io>,<mss_irq>,<mss_dma>,<mpu_io>,<mpu_irq>
diff -Nru a/drivers/input/mouse/psmouse-base.c b/drivers/input/mouse/psmouse-base.c
--- a/drivers/input/mouse/psmouse-base.c Sat Jan 3 03:08:40 2004
+++ b/drivers/input/mouse/psmouse-base.c Sat Jan 3 03:08:40 2004
@@ -35,30 +35,26 @@
MODULE_DESCRIPTION("PS/2 mouse driver");
MODULE_LICENSE("GPL");
-static int psmouse_noext;
-module_param(psmouse_noext, int, 0);
-MODULE_PARM_DESC(psmouse_noext, "[DEPRECATED] Disable any protocol extensions. Useful for KVM switches.");
-
static char *psmouse_proto;
static unsigned int psmouse_max_proto = -1U;
-module_param(psmouse_proto, charp, 0);
-MODULE_PARM_DESC(psmouse_proto, "Highest protocol extension to probe (bare, imps, exps). Useful for KVM switches.");
+module_param_named(proto, psmouse_proto, charp, 0);
+MODULE_PARM_DESC(proto, "Highest protocol extension to probe (bare, imps, exps). Useful for KVM switches.");
int psmouse_resolution = 200;
-module_param(psmouse_resolution, uint, 0);
-MODULE_PARM_DESC(psmouse_resolution, "Resolution, in dpi.");
+module_param_named(resolution, psmouse_resolution, uint, 0);
+MODULE_PARM_DESC(resolution, "Resolution, in dpi.");
unsigned int psmouse_rate = 100;
-module_param(psmouse_rate, uint, 0);
-MODULE_PARM_DESC(psmouse_rate, "Report rate, in reports per second.");
+module_param_named(rate, psmouse_rate, uint, 0);
+MODULE_PARM_DESC(rate, "Report rate, in reports per second.");
int psmouse_smartscroll = 1;
-module_param(psmouse_smartscroll, bool, 0);
-MODULE_PARM_DESC(psmouse_smartscroll, "Logitech Smartscroll autorepeat, 1 = enabled (default), 0 = disabled.");
+module_param_named(smartscroll, psmouse_smartscroll, bool, 0);
+MODULE_PARM_DESC(smartscroll, "Logitech Smartscroll autorepeat, 1 = enabled (default), 0 = disabled.");
unsigned int psmouse_resetafter;
-module_param(psmouse_resetafter, uint, 0);
-MODULE_PARM_DESC(psmouse_resetafter, "Reset Synaptics Touchpad after so many bad packets (0 = never).");
+module_param_named(resetafter, psmouse_resetafter, uint, 0);
+MODULE_PARM_DESC(resetafter, "Reset Synaptics Touchpad after so many bad packets (0 = never).");
static char *psmouse_protocols[] = { "None", "PS/2", "PS2++", "PS2T++", "GenPS/2", "ImPS/2", "ImExPS/2", "SynPS/2"};
@@ -674,12 +670,6 @@
static inline void psmouse_parse_proto(void)
{
- if (psmouse_noext) {
- printk(KERN_WARNING "psmouse: 'psmouse_noext' option is deprecated, please use 'psmouse_proto'\n");
- psmouse_max_proto = PSMOUSE_PS2;
- }
-
- /* even is psmouse_noext is present psmouse_proto overrides it */
if (psmouse_proto) {
if (!strcmp(psmouse_proto, "bare"))
psmouse_max_proto = PSMOUSE_PS2;
next prev parent reply other threads:[~2004-01-03 9:07 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-03 8:50 New set of input patches Dmitry Torokhov
2004-01-03 8:56 ` [PATCH 1/7] i8042 suspend Dmitry Torokhov
2004-01-03 8:57 ` [PATCH 2/7] i8042 option parsing Dmitry Torokhov
2004-01-03 9:00 ` Dmitry Torokhov [this message]
2004-01-03 9:01 ` [PATCH 4/7] atkbd " Dmitry Torokhov
2004-01-03 9:02 ` [PATCH 5/7] missing module licenses Dmitry Torokhov
2004-01-03 9:03 ` [PATCH 6/7] Kconfig Synaptics help Dmitry Torokhov
2004-01-03 9:03 ` [PATCH 7/7] SiS AUX port Dmitry Torokhov
2004-03-29 15:39 ` Dmitry Torokhov
2004-03-29 15:39 ` [PATCH 6/7] Kconfig Synaptics help Dmitry Torokhov
2004-03-29 15:39 ` [PATCH 5/7] missing module licenses Dmitry Torokhov
2004-01-03 10:07 ` [PATCH 3/7] psmouse option parsing Vojtech Pavlik
2004-01-03 17:29 ` Dmitry Torokhov
2004-01-03 17:38 ` Vojtech Pavlik
2004-03-29 15:40 ` Vojtech Pavlik
2004-03-29 15:40 ` Dmitry Torokhov
2004-03-29 15:39 ` Vojtech Pavlik
2004-03-29 15:39 ` [PATCH 4/7] atkbd " Dmitry Torokhov
2004-03-29 15:39 ` [PATCH 3/7] psmouse " Dmitry Torokhov
2004-01-03 10:03 ` [PATCH 1/7] i8042 suspend Vojtech Pavlik
2004-01-03 16:50 ` Dmitry Torokhov
2004-03-29 15:40 ` Dmitry Torokhov
2004-01-18 19:23 ` Russell King
2004-01-18 22:42 ` Dmitry Torokhov
2004-03-29 15:39 ` [PATCH 2/7] i8042 option parsing Dmitry Torokhov
2004-03-29 15:39 ` [PATCH 1/7] i8042 suspend Vojtech Pavlik
2004-01-03 10:10 ` New set of input patches Vojtech Pavlik
2004-01-05 5:59 ` Dmitry Torokhov
2004-01-05 6:01 ` [PATCH 1/3] Fix compile error in 98busmouse.c module Dmitry Torokhov
2004-01-05 6:02 ` [PATCH 2/3] Convert mouse drivers to use module_param Dmitry Torokhov
2004-01-05 6:03 ` [PATCH 3/3] Convert tsdev " Dmitry Torokhov
2004-03-29 15:44 ` Dmitry Torokhov
2004-03-29 15:44 ` [PATCH 2/3] Convert mouse drivers " Dmitry Torokhov
2004-01-05 8:36 ` New set of input patches Vojtech Pavlik
2004-03-29 15:44 ` [PATCH 1/3] Fix compile error in 98busmouse.c module Dmitry Torokhov
2004-03-29 15:44 ` New set of input patches Vojtech Pavlik
2004-03-29 15:39 ` [PATCH 1/7] i8042 suspend Dmitry Torokhov
2004-03-29 15:39 ` New set of input patches Vojtech Pavlik
2004-03-29 15:44 ` Dmitry Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200401030400.55755.dtor_core@ameritech.net \
--to=dtor_core@ameritech.net \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vojtech@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome