summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2002-08-02 16:30:50 +0000
committerKeith Packard <keithp@keithp.com>2002-08-02 16:30:50 +0000
commitfe477855d7d714c154dc9fcb1d0aa67fb8e4e5a5 (patch)
treefdb84cdcbcd023219ada346b06f8fd6239470cbe
parentcf49ce6f26caee30f4160e6e0b2b658863e7a145 (diff)
Fix for iPaq IOCTL changes
-rw-r--r--hw/kdrive/linux/ts.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/kdrive/linux/ts.c b/hw/kdrive/linux/ts.c
index 995c3b277..07a676982 100644
--- a/hw/kdrive/linux/ts.c
+++ b/hw/kdrive/linux/ts.c
@@ -1,5 +1,5 @@
/*
- * $XFree86: xc/programs/Xserver/hw/kdrive/linux/ts.c,v 1.4 2001/06/29 14:00:41 keithp Exp $
+ * $XFree86: xc/programs/Xserver/hw/kdrive/linux/ts.c,v 1.7 2002/08/02 16:11:35 keithp Exp $
*
* Derived from ps2.c by Jim Gettys
*
@@ -172,10 +172,11 @@ TsInit (void)
fd = open (mi->name, 0);
if (fd >= 0)
{
+ struct h3600_ts_calibration cal;
/*
* Check to see if this is a touch screen
*/
- if (ioctl (fd, TS_GET_RATE, 0) != -1)
+ if (ioctl (fd, TS_GET_CAL, &cal) != -1)
{
mi->driver = (void *) fd;
mi->inputType = TsInputType;