From: jcs Date: Fri, 22 Jan 2021 17:35:00 +0000 (+0000) Subject: ims: an actual i2c-connected mouse is unlikely X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f1440c79fafea7a835e6898614feeebeded4a9b9;p=openbsd 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 --- diff --git a/share/man/man4/ims.4 b/share/man/man4/ims.4 index 3b81de78c44..1913e253c87 100644 --- a/share/man/man4/ims.4 +++ b/share/man/man4/ims.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ims.4,v 1.3 2016/07/30 15:44:45 jcs Exp $ +.\" $OpenBSD: ims.4,v 1.4 2021/01/22 17:35:00 jcs Exp $ .\" .\" Copyright (c) 2016 Jonathan Gray .\" @@ -14,19 +14,19 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: July 30 2016 $ +.Dd $Mdocdate: January 22 2021 $ .Dt IMS 4 .Os .Sh NAME .Nm ims -.Nd I2C HID mouse support +.Nd I2C HID pointing device support .Sh SYNOPSIS .Cd "ims* at ihidev?" .Cd "wsmouse* at ims? mux 0" .Sh DESCRIPTION The .Nm -driver provides support for I2C HID mice. +driver provides support for I2C HID touchpads and other pointing devices. Access to these devices is through the .Xr wscons 4 driver. 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;