aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2007-02-10 01:29:11 -0500
committerDmitry Torokhov <dtor@insightbb.com>2007-02-10 01:29:11 -0500
commitff141a03e1909db719c6afd3230c2f16a4141860 (patch)
tree433135f6929ebf514c74f33dd5050fedf936118d
parent31ea7ff0f880dc3f4ad94e85c1432d4b910c9fca (diff)
Input: tsdev - schedule removal
Compaq touchscreen emulation (drivers/input/tsdev.c) is old, was obsolete when it was written by the authors own admission and much better userspace solutions like tslib now exist. The name is also confusing. Signed-off-by: Richard Purdie <rpurdie@rpsys.net> Acked-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-rw-r--r--Documentation/feature-removal-schedule.txt15
-rw-r--r--drivers/input/tsdev.c4
2 files changed, 19 insertions, 0 deletions
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt
index fa844fd7bded..5d140dc0ea2b 100644
--- a/Documentation/feature-removal-schedule.txt
+++ b/Documentation/feature-removal-schedule.txt
@@ -312,3 +312,18 @@ Why: In kernel tree version of driver is unmaintained. Sk98lin driver
312 replaced by the skge driver. 312 replaced by the skge driver.
313Who: Stephen Hemminger <shemminger@osdl.org> 313Who: Stephen Hemminger <shemminger@osdl.org>
314 314
315---------------------------
316
317What: Compaq touchscreen device emulation
318When: Oct 2007
319Files: drivers/input/tsdev.c
320Why: The code says it was obsolete when it was written in 2001.
321 tslib is a userspace library which does anything tsdev can do and
322 much more besides in userspace where this code belongs. There is no
323 longer any need for tsdev and applications should have converted to
324 use tslib by now.
325 The name "tsdev" is also extremely confusing and lots of people have
326 it loaded when they don't need/use it.
327Who: Richard Purdie <rpurdie@rpsys.net>
328
329---------------------------
diff --git a/drivers/input/tsdev.c b/drivers/input/tsdev.c
index a730c461227f..0300dca8591d 100644
--- a/drivers/input/tsdev.c
+++ b/drivers/input/tsdev.c
@@ -151,6 +151,10 @@ static int tsdev_open(struct inode *inode, struct file *file)
151 int i = iminor(inode) - TSDEV_MINOR_BASE; 151 int i = iminor(inode) - TSDEV_MINOR_BASE;
152 struct tsdev_list *list; 152 struct tsdev_list *list;
153 153
154 printk(KERN_WARNING "tsdev (compaq touchscreen emulation) is scheduled "
155 "for removal.\nSee Documentation/feature-removal-schedule.txt "
156 "for details.\n");
157
154 if (i >= TSDEV_MINORS || !tsdev_table[i & TSDEV_MINOR_MASK]) 158 if (i >= TSDEV_MINORS || !tsdev_table[i & TSDEV_MINOR_MASK])
155 return -ENODEV; 159 return -ENODEV;
156 160