diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-04-15 09:14:42 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-04-15 09:14:42 +0000 |
commit | ef6d59f94200628194940cb20aa4986edec4b629 (patch) | |
tree | 251a9a45ee150878cdd509f79c987555365a6228 /sys/dev | |
parent | a5039cf3fb508e40d2fbae4eb105e12c99f5b9dc (diff) |
Revert r1.37 now that we stop after the first matching protocol, tested
by Peter J. Philipp, thanks.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pckbc/pms.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/sys/dev/pckbc/pms.c b/sys/dev/pckbc/pms.c index d8563d6d23a..ca21b2f6bcf 100644 --- a/sys/dev/pckbc/pms.c +++ b/sys/dev/pckbc/pms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pms.c,v 1.39 2013/04/15 09:12:42 mpi Exp $ */ +/* $OpenBSD: pms.c,v 1.40 2013/04/15 09:14:41 mpi Exp $ */ /* $NetBSD: psm.c,v 1.11 2000/06/05 22:20:57 sommerfeld Exp $ */ /*- @@ -118,7 +118,6 @@ struct elantech_softc { #define ELANTECH_F_2FINGER_PACKET 0x04 #define ELANTECH_F_HW_V1_OLD 0x08 - int hw_version; int min_x, min_y; int max_x, max_y; @@ -1712,10 +1711,6 @@ pms_enable_elantech_v1(struct pms_softc *sc) struct elantech_softc *elantech = sc->elantech; int i; - /* Check if a different hardware version has been detected. */ - if (elantech && elantech->hw_version != 0 && elantech->hw_version != 1) - return (0); - if (elantech_knock(sc)) goto err; @@ -1738,8 +1733,6 @@ pms_enable_elantech_v1(struct pms_softc *sc) for (i = 0; i < nitems(sc->elantech->parity); i++) sc->elantech->parity[i] = sc->elantech->parity[i & (i - 1)] ^ 1; - elantech->hw_version = 1; - return (1); err: @@ -1758,10 +1751,6 @@ pms_enable_elantech_v2(struct pms_softc *sc) { struct elantech_softc *elantech = sc->elantech; - /* Check if a different hardware version has been detected. */ - if (elantech && elantech->hw_version != 0 && elantech->hw_version != 2) - return (0); - if (elantech_knock(sc)) goto err; @@ -1781,8 +1770,6 @@ pms_enable_elantech_v2(struct pms_softc *sc) } else if (elantech_set_absolute_mode_v2(sc)) goto err; - elantech->hw_version = 2; - return (1); err: @@ -1801,10 +1788,6 @@ pms_enable_elantech_v3(struct pms_softc *sc) { struct elantech_softc *elantech = sc->elantech; - /* Check if a different hardware version has been detected. */ - if (elantech && elantech->hw_version != 0 && elantech->hw_version != 3) - return (0); - if (elantech_knock(sc)) goto err; @@ -1824,8 +1807,6 @@ pms_enable_elantech_v3(struct pms_softc *sc) } else if (elantech_set_absolute_mode_v3(sc)) goto err; - elantech->hw_version = 3; - return (1); err: |