diff mbox

[1/4] Input: elantech - Assume all firmware versions >= 2.48 use 6 byte packets

Message ID 1272141662-23431-2-git-send-email-rafl@debian.org (mailing list archive)
State Accepted
Commit 225c61aad38b12924b3df5f4ef43150c0d6bae8c
Headers show

Commit Message

Florian Ragwitz April 24, 2010, 8:40 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c
index a138b5d..07f6b17 100644
--- a/drivers/input/mouse/elantech.c
+++ b/drivers/input/mouse/elantech.c
@@ -666,7 +666,8 @@  int elantech_init(struct psmouse *psmouse)
 	 * Assume every version greater than this is new EeePC style
 	 * hardware with 6 byte packets
 	 */
-	if (etd->fw_version_maj >= 0x02 && etd->fw_version_min >= 0x30) {
+	if ((etd->fw_version_maj == 0x02 && etd->fw_version_min >= 0x30) ||
+	    etd->fw_version_maj > 0x02) {
 		etd->hw_version = 2;
 		/* For now show extra debug information */
 		etd->debug = 1;