From patchwork Mon May 28 19:50:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sultan Alsawaf X-Patchwork-Id: 10433987 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 48315601BE for ; Mon, 28 May 2018 19:51:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3881728475 for ; Mon, 28 May 2018 19:51:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2CB78284F1; Mon, 28 May 2018 19:51:06 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 BC19128475 for ; Mon, 28 May 2018 19:51:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933700AbeE1TvF (ORCPT ); Mon, 28 May 2018 15:51:05 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:37678 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933696AbeE1TvE (ORCPT ); Mon, 28 May 2018 15:51:04 -0400 Received: by mail-ot0-f196.google.com with SMTP id 77-v6so14535527otd.4 for ; Mon, 28 May 2018 12:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=J87apMOMjOH5M7lbWn8qbcHoDjxveW9q8jI/vH2VFfI=; b=C4mG93WOfAcOEfUKEgd2bUFL2HK2iCjLuRoPP8byrIust35BBC86XbZR7dzFh2RaTk 5i9QygoVBo1+WMkdE4dtW/PGUPg7hZ3g0m6u3yyl5IgQ79qG9ACce5jqVgnAqILecY+S YDXAGbQ9Yxb7Q6BEwbBSewLHDXBUb68jjHLJQI9MdJUGWaYOTqGAz1fcMKbzxluHYAid py7QCJVyTfMNdxrE71kMACM7fg8KdtD7B8D3YO3gh6mKtNyp9QVlw3dBgSr0pEle0Jdg Fm6k2ZYdlQfANouiTuIfkUaQGo/8lALtCVBsYgA7knEK5r3H/amEy31UmhtCUOykxjBo HpDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=J87apMOMjOH5M7lbWn8qbcHoDjxveW9q8jI/vH2VFfI=; b=Rqb0PdvWUEDC+sYAwjY3X3jcrNjbshL+kRHjhl6mJsfXLZfn3787U/lQqy6cEOhb/e GZtqdIAor8sN3bV5XaUkkmy+b4SMxSy84M2BOnKc+rhIMwSOGLqQ+P4sd5g83zRHJLvL RksD/3jtEnn/KBg7KNoQKkEp/wzLFn2k5HgIA6RFgrvLw+vNBn7G8N/69o/lRt1mf28V E3aTkJtQEfeLRizS/A/ItRkSdQYLTGEqVkyRd5dcaryYRWAyy/BO7ssvzlP/db6dOK3i w6I97sXKRFtMaTpenVMSe6qRxpN5ashoiYTLr4K0bRwwssgTkilDzASLGm7BXKZDBu1G ML8Q== X-Gm-Message-State: ALKqPwdBJ8FmOdIs59E3oWzkNd0/djz77x4BDh54g/Yd8tSmzxOXlqZ2 RCowCIFIvElcuN5EEij2n2U= X-Google-Smtp-Source: ADUXVKI013M+l4YjFolJCN45Qh4KP2v+uKXBE+G2teGMulXUISlONx6ja8rjFvj1G1OSnghug8vZGw== X-Received: by 2002:a9d:2013:: with SMTP id n19-v6mr8813252ota.258.1527537063669; Mon, 28 May 2018 12:51:03 -0700 (PDT) Received: from sultan-box.localdomain ([107.193.118.89]) by smtp.gmail.com with ESMTPSA id m56-v6sm18773555otd.78.2018.05.28.12.51.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 May 2018 12:51:02 -0700 (PDT) From: Sultan Alsawaf To: nick@shmanahar.org, dmitry.torokhov@gmail.com, linux-input@vger.kernel.org Cc: Sultan Alsawaf Subject: [PATCH] Input: atmel_mxt_ts - add touchpad button mapping for Samsung Chromebook 3 Date: Mon, 28 May 2018 12:50:45 -0700 Message-Id: <20180528195045.21036-1-sultanxda@gmail.com> X-Mailer: git-send-email 2.17.0 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 Celes 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 Celes, so they have been reused here. Signed-off-by: Sultan Alsawaf --- drivers/input/touchscreen/atmel_mxt_ts.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 429b694405c7..0c022f4c1a19 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -3039,6 +3039,15 @@ static const struct dmi_system_id mxt_dmi_table[] = { }, .driver_data = samus_platform_data, }, + { + /* Samsung Chromebook 3 (Celes) */ + .ident = "Samsung Chromebook 3 (Celes)", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"), + DMI_MATCH(DMI_PRODUCT_NAME, "Celes"), + }, + .driver_data = samus_platform_data, + }, { /* Other Google Chromebooks */ .ident = "Chromebook",