From a152958512f308afc63273a2baac73e466ba2c39 Mon Sep 17 00:00:00 2001 From: jcs Date: Wed, 5 Sep 2018 16:34:58 +0000 Subject: [PATCH] Back out 1.4, it broke things --- sys/dev/hid/hidms.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/dev/hid/hidms.c b/sys/dev/hid/hidms.c index 30f541ebefb..d62c7e870f9 100644 --- a/sys/dev/hid/hidms.c +++ b/sys/dev/hid/hidms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hidms.c,v 1.4 2018/09/01 20:48:00 jcs Exp $ */ +/* $OpenBSD: hidms.c,v 1.5 2018/09/05 16:34:58 jcs Exp $ */ /* $NetBSD: ums.c,v 1.60 2003/03/11 16:44:00 augustss Exp $ */ /* @@ -241,15 +241,13 @@ hidms_setup(struct device *self, struct hidms *ms, uint32_t quirks, h.usage, h.logical_minimum, h.logical_maximum)); switch (HID_GET_USAGE(h.usage)) { case HUG_X: - if (ms->sc_flags & HIDMS_ABSX && - !ms->sc_tsscale.minx && !ms->sc_tsscale.maxy) { + if (ms->sc_flags & HIDMS_ABSX) { ms->sc_tsscale.minx = h.logical_minimum; ms->sc_tsscale.maxx = h.logical_maximum; } break; case HUG_Y: - if (ms->sc_flags & HIDMS_ABSY && - !ms->sc_tsscale.miny && !ms->sc_tsscale.maxy) { + if (ms->sc_flags & HIDMS_ABSY) { ms->sc_tsscale.miny = h.logical_minimum; ms->sc_tsscale.maxy = h.logical_maximum; } -- 2.20.1