summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2013-07-06 14:42:39 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2013-07-06 14:42:39 +0000
commit70dbed1e39efebebb03426c54a7f0dc2004570e5 (patch)
treee619e7043ddec4bd3a5e2f7d222a458a226ae0d4 /sys
parentd0136482336430ec3b88a841f07386ec87151c39 (diff)
Advertise utpms(4) as being a WSMOUSE_TYPE_USB because even if it could
be declared as PANEL or SYNAPTICS it doesn't implement GCALIBCOORDS for the moment. This makes ws(4) happier as it can now uses the touchpad directly wich in turn makes my touchpad usable if the bluetooth HID mouse is not detected or ums(4) is disable.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/utpms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/utpms.c b/sys/dev/usb/utpms.c
index 4d4bca511d5..16a1321428c 100644
--- a/sys/dev/usb/utpms.c
+++ b/sys/dev/usb/utpms.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: utpms.c,v 1.1 2013/05/31 19:32:30 mpi Exp $ */
+/* $OpenBSD: utpms.c,v 1.2 2013/07/06 14:42:38 mpi Exp $ */
/*
* Copyright (c) 2005, Johan Wallén
@@ -417,7 +417,7 @@ utpms_ioctl(void *v, unsigned long cmd, caddr_t data, int flag, struct proc *p)
{
switch (cmd) {
case WSMOUSEIO_GTYPE:
- *(u_int *)data = WSMOUSE_TYPE_TPANEL;
+ *(u_int *)data = WSMOUSE_TYPE_USB;
return (0);
}