From: mpi Date: Mon, 25 May 2015 15:04:26 +0000 (+0000) Subject: Match newer elantech v4 touchpads, logic taken from Linux. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cccb45c9bff1da33c2423defc20d9040ee0d2077;p=openbsd Match newer elantech v4 touchpads, logic taken from Linux. Based on a submission from and ok jcs@. --- diff --git a/sys/dev/pckbc/pms.c b/sys/dev/pckbc/pms.c index d34636127ec..2e7e6e3e4f2 100644 --- a/sys/dev/pckbc/pms.c +++ b/sys/dev/pckbc/pms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pms.c,v 1.60 2015/05/04 09:33:46 mpi Exp $ */ +/* $OpenBSD: pms.c,v 1.61 2015/05/25 15:04:26 mpi Exp $ */ /* $NetBSD: psm.c,v 1.11 2000/06/05 22:20:57 sommerfeld Exp $ */ /*- @@ -1840,7 +1840,7 @@ elantech_get_hwinfo_v4(struct pms_softc *sc) if (synaptics_query(sc, ELANTECH_QUE_FW_VER, &fw_version)) return (-1); - if (((fw_version & 0x0f0000) >> 16) != 6) + if (((fw_version & 0x0f0000) >> 16) < 6) return (-1); elantech->fw_version = fw_version;