summaryrefslogtreecommitdiff
path: root/sys/dev/i2c
diff options
context:
space:
mode:
authorJoshua Stein <jcs@cvs.openbsd.org>2021-01-22 17:35:01 +0000
committerJoshua Stein <jcs@cvs.openbsd.org>2021-01-22 17:35:01 +0000
commit8b3b1365c98ea1eccb601c4280e280e9f0bf94a8 (patch)
treeb7dbe93130289fc2dce220320bc4b99408df3cf1 /sys/dev/i2c
parentbb4dc88a1df698901666262ee1baa1816cc56a37 (diff)
ims: an actual i2c-connected mouse is unlikely
Claim to be a touchpad instead, which sets up ims devices in X11 to be more like touchpads. ok mglocker
Diffstat (limited to 'sys/dev/i2c')
-rw-r--r--sys/dev/i2c/ims.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/i2c/ims.c b/sys/dev/i2c/ims.c
index e74dd8554c2..3275bec6dc9 100644
--- a/sys/dev/i2c/ims.c
+++ b/sys/dev/i2c/ims.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ims.c,v 1.2 2018/09/01 20:50:16 jcs Exp $ */
+/* $OpenBSD: ims.c,v 1.3 2021/01/22 17:35:00 jcs Exp $ */
/*
* HID-over-i2c mouse/trackpad driver
*
@@ -180,8 +180,7 @@ ims_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct proc *p)
switch (cmd) {
case WSMOUSEIO_GTYPE:
- /* XXX: should we set something else? */
- *(u_int *)data = WSMOUSE_TYPE_USB;
+ *(u_int *)data = WSMOUSE_TYPE_TOUCHPAD;
return 0;
default:
return -1;