diff options
author | julian <julian@FreeBSD.org> | 2004-12-13 01:23:49 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2004-12-13 01:23:49 +0000 |
commit | 0dfd473a4350c7efa286c00cfffc03acae138465 (patch) | |
tree | c87ebf7f6e78eca9ed6e9d822baa0c8bcb3d1492 /sys/dev/usb | |
parent | 86608beae6e78e4174fe08923b183de4e10061f2 (diff) | |
download | FreeBSD-src-0dfd473a4350c7efa286c00cfffc03acae138465.zip FreeBSD-src-0dfd473a4350c7efa286c00cfffc03acae138465.tar.gz |
Don't export the 'dt' field as that would break the exisiting ABI.
keep the code but comment it out so that if the ABI changes we
can see easily what should be done.
Submitted by: iedowse
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/ums.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c index 75b8c7c..458aa95 100644 --- a/sys/dev/usb/ums.c +++ b/sys/dev/usb/ums.c @@ -476,7 +476,7 @@ ums_intr(xfer, addr, status) sc->status.dx += dx; sc->status.dy += dy; sc->status.dz += dz; - sc->status.dt += dt; + /* sc->status.dt += dt;*/ /* no way to export this yet */ /* Discard data in case of full buffer */ if (sc->qcount == sizeof(sc->qbuf)) { @@ -579,7 +579,7 @@ ums_enable(v) sc->qhead = sc->qtail = 0; sc->status.flags = 0; sc->status.button = sc->status.obutton = 0; - sc->status.dx = sc->status.dy = sc->status.dz = sc->status.dt = 0; + sc->status.dx = sc->status.dy = sc->status.dz = /* sc->status.dt */ = 0; callout_handle_init((struct callout_handle *)&sc->callout_handle); @@ -836,10 +836,11 @@ ums_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, usb_proc_ptr p) *status = sc->status; sc->status.obutton = sc->status.button; sc->status.button = 0; - sc->status.dx = sc->status.dy = sc->status.dz = sc->status.dt = 0; + sc->status.dx = sc->status.dy + = sc->status.dz = /* sc->status.dt = */ 0; splx(s); - if (status->dx || status->dy || status->dz || status->dt) + if (status->dx || status->dy || status->dz /* || status->dt */) status->flags |= MOUSE_POSCHANGED; if (status->button != status->obutton) status->flags |= MOUSE_BUTTONSCHANGED; |