From patchwork Wed Apr 25 12:32:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vittorio G (VittGam)" X-Patchwork-Id: 10363015 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 34AEE60225 for ; Wed, 25 Apr 2018 12:41:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2561D285FE for ; Wed, 25 Apr 2018 12:41:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19A8928695; Wed, 25 Apr 2018 12:41:14 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, 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 05E52285FE for ; Wed, 25 Apr 2018 12:41:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752313AbeDYMlK (ORCPT ); Wed, 25 Apr 2018 08:41:10 -0400 Received: from server1.vittgam.net ([213.239.197.142]:52085 "EHLO mail.vittgam.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751910AbeDYMlJ (ORCPT ); Wed, 25 Apr 2018 08:41:09 -0400 X-Greylist: delayed 484 seconds by postgrey-1.27 at vger.kernel.org; Wed, 25 Apr 2018 08:41:07 EDT X-DKIM: OpenDKIM Filter v2.4.2 mail.vittgam.net w3PCWweA028076 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=vittgam.net; s=20150519; t=1524659578; bh=hclxn7GXFCB2QMEamvBMTiQPVgiFH/tJGrOSQu1c3XQ=; h=From:To:Cc:Subject; b=LUix+l4ZILv8cv6sRJyQmVgx+gb6vmorGp3JtCTLrCTrXRI1SyyPdsHA1evNmd153 W/6/f52y0A4RGrejTwdreyQf6NwKBTl0rsUip/h6DXsMPpDawFkx4yWio6UeAX4/l3 GTVrEaqjAt5zOAHMLQpOskPWIHfXOzcyeKulXCm0OBU1ThjsCHZAjNCQpSp+OKtkux SfcQsKO1lfIt6gOdpshhgV2c1dzC1L0aNjR6JS6LTLXJrSW+g/jQwR3o7dQWRMn1Or +e4S+F0sWLnsUXv+xalGJASogCkA/6pWPtaWzRDXTFrsjrGTo+0DdHPtInH+f8RPN/ TcsYexj/I+sDzGVqv/rCThyuSBEgqGGwOiTU7vU+L3JfqKxE08ZK8orOdvwEIy4GBh FSRfxcgVD2f5HqKGjXIeu03tKDbJiKcFHmh2lKrxMX3/yTBznnIHetLbWZlA3uFEMP cgDhOFm633nfbiwOXfZl7zMLKM4mWxsgJrNpB3Fz6boHFDXcsmn9TLIN6B51nZKrgt pIx18532IG7N58TfQlyW41h3Li+Nxj0RFiirFHjn4iA73ktk7gDALW6Eciei1AO7xD m6+1xoSwMXoa4a3OmAGSvndYUEFRIhTH4vBbJ3pXVprMS1NhmGGK8y2rIPyvWXFeBw Cz19gFGWV0DUd4qRAaocDLSo= X-VittGamMilter-Outgoing-SubjectPrefix: [linux-stable] X-VittGamMilter-Outgoing-OriginalSubject: [PATCH v2] input/touchscreen: atmel_mxt_ts: Add correct touchpad button mapping for the Caroline Chromebook. Received: from vl4 ([10.48.6.117]) by mail.vittgam.net with SMTP id w3PCWweA028076; Wed, 25 Apr 2018 14:32:58 +0200 Date: Wed, 25 Apr 2018 14:32:58 +0200 Message-Id: <201804251232.w3PCWweA028076@mail.vittgam.net> From: "Vittorio Gambaletta (VittGam)" To: , , , , , Cc: "Salvatore Bellizzi" Subject: [PATCH v2] input/touchscreen: atmel_mxt_ts: Add correct touchpad button mapping for the Caroline Chromebook. 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 This patch adds the correct platform data information for the Caroline Chromebook, so that the mouse button does not get stuck in pressed state after the first click. The Samus button keymap and platform data definition are the correct ones for Caroline, so they have been reused here. v2: updated patch offset after 20180409 changes. Cc: stable@vger.kernel.org Signed-off-by: Vittorio Gambaletta Signed-off-by: Salvatore Bellizzi --- -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -3035,6 +3035,15 @@ .driver_data = samus_platform_data, }, { + /* Samsung Chromebook Pro */ + .ident = "Samsung Chromebook Pro", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"), + DMI_MATCH(DMI_PRODUCT_NAME, "Caroline"), + }, + .driver_data = samus_platform_data, + }, + { /* Other Google Chromebooks */ .ident = "Chromebook", .matches = {