From patchwork Fri Jun 17 20:47:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dennis Chen X-Patchwork-Id: 9184979 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 3A5BF601C0 for ; Fri, 17 Jun 2016 20:47:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0546827DD0 for ; Fri, 17 Jun 2016 20:47:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE2E127F54; Fri, 17 Jun 2016 20:47:37 +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, T_TVD_MIME_EPI 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 8AEAD27DD0 for ; Fri, 17 Jun 2016 20:47:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751129AbcFQUrg (ORCPT ); Fri, 17 Jun 2016 16:47:36 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:34225 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750840AbcFQUrg (ORCPT ); Fri, 17 Jun 2016 16:47:36 -0400 Received: by mail-oi0-f67.google.com with SMTP id a64so15816474oii.1 for ; Fri, 17 Jun 2016 13:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:mime-version; bh=KD5WLlbOlzdhmEcj0AfvxIQRK12KJSuz8X7ClmrhQhs=; b=uR9L18dHZiMkg6ZipdvxWUEcf8mHuCBZQneS1sQiZBa4vNjgYH+q1c4HfUC/p3xWds rTDcwZlGrXUqWxzBrs63d4I+Bbq6wdSvZ1wTtc/r3NXdbmDrJH1+Pm7Mx51wD7FWHtI4 qPYFHXLEOT/sTbUFp2ZHtSmU54fE1s+dEGcvJk4Y66b2zyXYbHAHNGJxsuQB/7zsx6fV MYcZxNtwS/MZRee1S1/W90RSGNdbAlu+33BUGME4pUz/OD1p5LegQ7ivIKAzykO+Iaka CHSVUuzwWquCShtaibCM3Y64YojC6/QQZrKgeFcEDnLIwgNqnaHuDfsYSPl1YMFubZLh VI5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:mime-version; bh=KD5WLlbOlzdhmEcj0AfvxIQRK12KJSuz8X7ClmrhQhs=; b=VVgt9WeLSyUYeO+jgddXpAzos7qQeN6rswG0U+IXM26QIVgJ6ELQhiRSEUSTBzPz+r PxTpwFXXMceg7jhiPapq9lM3JGoF7AC4gvDCV9PMEaksapRsGRgSFNc7nz41RPnHCZRS xpemWo1DSbIKlB666wC0t7AcRfG96e7xXtOjTovMDaF/7AXNOX6uXDB8LfDm4ZSYmt8e z5YlTuEHcdxcSeRpQsyIkbOWI6PjlqgBagE5dkn2OYLNbhV5+OEba5/j1IVi126ZD0l8 1/szaRo9qbPHfZao7lty+ANdTKztosARyYeoUi1a6mVHq3mghXzlK7NKPMy+oFxtQ9Bg c2nQ== X-Gm-Message-State: ALyK8tJnofIpTtxbzVxqYVO9UeyUF8IALWteGwgqZ0FlXaKwlhk72XORcCYxh83cfdPEAw== X-Received: by 10.157.4.130 with SMTP id 2mr3032418otm.122.1466196455525; Fri, 17 Jun 2016 13:47:35 -0700 (PDT) Received: from linux-2653 (ip68-5-234-151.oc.oc.cox.net. [68.5.234.151]) by smtp.googlemail.com with ESMTPSA id s65sm21925002oia.22.2016.06.17.13.47.34 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 17 Jun 2016 13:47:34 -0700 (PDT) Message-ID: <1466196443.21223.1.camel@gmail.com> Subject: [PATCH] HID: multitouch: add support for Type Cover Pro 3 From: Dennis Chen To: Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org Date: Fri, 17 Jun 2016 13:47:23 -0700 X-Mailer: Evolution 3.18.5.2 (3.18.5.2-1.fc23) Mime-Version: 1.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 Include Microsoft Type Cover 3 support into hid-multitouch.c Allow touchpad device to have multitouch functionality. Signed-off-by: Dennis Chen ---  drivers/hid/Kconfig          |  1 +  drivers/hid/hid-multitouch.c | 14 ++++++++++++++  2 files changed, 15 insertions(+) --  2.5.5 diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 5646ca4..5af0603 100644 --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig @@ -530,6 +530,7 @@ config HID_MULTITOUCH     - IrTouch Infrared USB panels     - LG Display panels (Dell ST2220Tc)     - Lumio CrystalTouch panels +   - Microsoft Type Cover 3 touchpad     - MosArt dual-touch panels     - Panasonic multitouch panels     - PenMount dual touch panels diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index c741f5e..f052ed2 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -1377,6 +1377,20 @@ static const struct hid_device_id mt_devices[] = {   MT_USB_DEVICE(USB_VENDOR_ID_ILITEK,   USB_DEVICE_ID_ILITEK_MULTITOUCH) },   + /* Microsoft Type Cover 3 touchpad */ + { .driver_data = MT_CLS_EXPORT_ALL_INPUTS, + MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, + USB_DEVICE_ID_MS_TYPE_COVER_PRO_3) }, + { .driver_data = MT_CLS_EXPORT_ALL_INPUTS, + MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, + USB_DEVICE_ID_MS_TYPE_COVER_PRO_3_2) }, + { .driver_data = MT_CLS_EXPORT_ALL_INPUTS, + MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, + USB_DEVICE_ID_MS_TYPE_COVER_PRO_3_JP) }, + { .driver_data = MT_CLS_EXPORT_ALL_INPUTS, + MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, + USB_DEVICE_ID_MS_TYPE_COVER_3) }, +   /* MosArt panels */   { .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE,   MT_USB_DEVICE(USB_VENDOR_ID_ASUS,