From patchwork Tue Jun 21 23:15:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 9191537 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9795A6075A for ; Tue, 21 Jun 2016 23:15:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 862AF28342 for ; Tue, 21 Jun 2016 23:15:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7789328383; Tue, 21 Jun 2016 23:15:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B396228342 for ; Tue, 21 Jun 2016 23:15:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752086AbcFUXPj (ORCPT ); Tue, 21 Jun 2016 19:15:39 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35123 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751880AbcFUXPi (ORCPT ); Tue, 21 Jun 2016 19:15:38 -0400 Received: by mail-pf0-f193.google.com with SMTP id t190so2277152pfb.2; Tue, 21 Jun 2016 16:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=n6w/+zDQSr+HaT1Omw6oy9lzuwS7Pr1iUYVkZKmDAe8=; b=prHzcWUe0KK06nmH4tADyPM2OPe3J4ZSHnEXdrJrQDSQG9L4kDvtXWBu4mU4VPR4PY DEPZzACENaHl1HiFIlOi21mskXhzWTMNwNZuGZki+hbYK/ERhgDvbkSeKwtFTuIDxDPK Lhk/mi13THhoQ/ti44ZW/RlFtYgs+ZfXVnEqxhyeyKPcq9alXDdjV4Du3Fsg+fPwBt/i 26+Vg25BXdI2RcMxJw6H80B8KXYN6DG3sgpVQ1EbBXfsjmkBLhmq4bkOxiHFbEsAHCU8 LTbU34LftBoVCRNlJ6FocNGvIGhT/0h3+qsG9To8p5sbejp1/gcdKE1kt49I/NAuC3yf 3p+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=n6w/+zDQSr+HaT1Omw6oy9lzuwS7Pr1iUYVkZKmDAe8=; b=XDZ4Bsa4vFWGqKGFxPP79VsDsMvkqmfTILCVIZgencTPycgPkQjKEcfeTlXxEmWQqr ik8W4DrlzrnY4pPOTb/g4eUucvnb9LSd+KxblNXnMMJ7UqhQMsZJfdZwDFUPeqvhtnIL c4DqXUKIg0Kr62kf0S4L4uozGq68b6NHShsOqn6AFY9llTfKjQ5it0TGLtVObFpKqVno iUakqS0QA4vQjr1IGN9r278GVS7pt8XeoEcFre6OKpBh7OtuFQ8T2+M4tpZJC7O7XyYF gAaFbyzmQ6KEjHQZcZTR3C4hOWXwOplUqSbc6MX9GD1TcrJMtA9q6v1J4CU9blx7VXhc Chng== X-Gm-Message-State: ALyK8tIeCDFWhwyQ+wkQlFaWVEdGeXF5E1h7fN49KKqhFL93ACluJhkYdt/2ywEObN4vuw== X-Received: by 10.98.88.5 with SMTP id m5mr30812455pfb.27.1466550937760; Tue, 21 Jun 2016 16:15:37 -0700 (PDT) Received: from dtor-ws ([2620:0:1000:1311:d52c:614a:5faa:e874]) by smtp.gmail.com with ESMTPSA id c64sm98327505pfa.29.2016.06.21.16.15.36 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 21 Jun 2016 16:15:37 -0700 (PDT) Date: Tue, 21 Jun 2016 16:15:35 -0700 From: Dmitry Torokhov To: linux-input@vger.kernel.org Cc: Benjamin Tissoires , kt.liao@emc.com.tw, Patrick.Lessard@cogeco.com, linux-kernel@vger.kernel.org Subject: [PATCH] Input: elantech - add more IC body types to the list Message-ID: <20160621231535.GA20091@dtor-ws> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The touchpad in HP Pavilion 14-ab057ca reports it's version as 12 and according to Elan both 11 and 12 are valid IC types and should be identified as hw_version 4. Reported-by: Patrick Lessard Signed-off-by: Dmitry Torokhov --- drivers/input/mouse/elantech.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c index e0fbd42..615d23e 100644 --- a/drivers/input/mouse/elantech.c +++ b/drivers/input/mouse/elantech.c @@ -1568,13 +1568,7 @@ static int elantech_set_properties(struct elantech_data *etd) case 5: etd->hw_version = 3; break; - case 6: - case 7: - case 8: - case 9: - case 10: - case 13: - case 14: + case 6 ... 14: etd->hw_version = 4; break; default: