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/3] Convert tsdev to use module_param
Date: Mon, 5 Jan 2004 01:03:41 -0500 [thread overview]
Message-ID: <200401050103.42976.dtor_core@ameritech.net> (raw)
In-Reply-To: <200401050102.49892.dtor_core@ameritech.net>
===================================================================
ChangeSet@1.1582, 2004-01-05 00:36:03-05:00, dtor_core@ameritech.net
Input: convert tsdev to the new way of handling parameters
and document them in kernel-parameters.txt
Documentation/kernel-parameters.txt | 6 +++++-
drivers/input/tsdev.c | 23 +++++++++++++----------
2 files changed, 18 insertions(+), 11 deletions(-)
===================================================================
diff -Nru a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
--- a/Documentation/kernel-parameters.txt Mon Jan 5 00:46:48 2004
+++ b/Documentation/kernel-parameters.txt Mon Jan 5 00:46:48 2004
@@ -37,7 +37,7 @@
MCA MCA bus support is enabled.
MDA MDA console support is enabled.
MOUSE Appropriate mouse support is enabled.
- MTD MTD support is nebaled.
+ MTD MTD support is enabled.
NET Appropriate network support is enabled.
NFS Appropriate NFS support is enabled.
OSS OSS sound support is enabled.
@@ -57,6 +57,7 @@
SMP The kernel is an SMP kernel.
SPARC Sparc architecture is enabled.
SWSUSP Software suspension is enabled.
+ TS Appropriate touchscreen support is enabled.
USB USB support is enabled.
V4L Video For Linux support is enabled.
VGA The VGA console has been enabled.
@@ -1135,6 +1136,9 @@
trix= [HW,OSS] MediaTrix AudioTrix Pro
Format: <io>,<irq>,<dma>,<dma2>,<sb_io>,<sb_irq>,<sb_dma>,<mpu_io>,<mpu_irq>
+ tsdev.xres [TS] Horizontal screen resolution.
+ tsdev.yres [TS] Vertical screen resolution.
+
u14-34f= [HW,SCSI] UltraStor 14F/34F SCSI host adapter
See header of drivers/scsi/u14-34f.c.
diff -Nru a/drivers/input/tsdev.c b/drivers/input/tsdev.c
--- a/drivers/input/tsdev.c Mon Jan 5 00:46:48 2004
+++ b/drivers/input/tsdev.c Mon Jan 5 00:46:48 2004
@@ -34,6 +34,7 @@
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/module.h>
+#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/input.h>
#include <linux/major.h>
@@ -51,6 +52,18 @@
#define CONFIG_INPUT_TSDEV_SCREEN_Y 320
#endif
+MODULE_AUTHOR("James Simmons <jsimmons@transvirtual.com>");
+MODULE_DESCRIPTION("Input driver to touchscreen converter");
+MODULE_LICENSE("GPL");
+
+static int xres = CONFIG_INPUT_TSDEV_SCREEN_X;
+module_param(xres, uint, 0);
+MODULE_PARM_DESC(xres, "Horizontal screen resolution");
+
+static int yres = CONFIG_INPUT_TSDEV_SCREEN_Y;
+module_param(yres, uint, 0);
+MODULE_PARM_DESC(yres, "Vertical screen resolution");
+
struct tsdev {
int exist;
int open;
@@ -82,9 +95,6 @@
static struct tsdev *tsdev_table[TSDEV_MINORS];
-static int xres = CONFIG_INPUT_TSDEV_SCREEN_X;
-static int yres = CONFIG_INPUT_TSDEV_SCREEN_Y;
-
static int tsdev_fasync(int fd, struct file *file, int on)
{
struct tsdev_list *list = file->private_data;
@@ -394,10 +404,3 @@
module_init(tsdev_init);
module_exit(tsdev_exit);
-
-MODULE_AUTHOR("James Simmons <jsimmons@transvirtual.com>");
-MODULE_DESCRIPTION("Input driver to touchscreen converter");
-MODULE_PARM(xres, "i");
-MODULE_PARM_DESC(xres, "Horizontal screen resolution");
-MODULE_PARM(yres, "i");
-MODULE_PARM_DESC(yres, "Vertical screen resolution");
next prev parent reply other threads:[~2004-01-05 6: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 ` [PATCH 3/7] psmouse " Dmitry Torokhov
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 ` [PATCH 4/7] atkbd " Dmitry Torokhov
2004-03-29 15:39 ` [PATCH 3/7] psmouse " Vojtech Pavlik
2004-03-29 15:39 ` 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 ` Vojtech Pavlik
2004-03-29 15:39 ` [PATCH 2/7] i8042 option parsing Dmitry Torokhov
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 ` Dmitry Torokhov [this message]
2004-03-29 15:44 ` [PATCH 3/3] Convert tsdev " 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=200401050103.42976.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.