Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2101012ybl; Thu, 30 Jan 2020 11:22:17 -0800 (PST) X-Google-Smtp-Source: APXvYqyv5B2wtC5RysYIff2ywdo+NaQ7KV81LZ34JOw313k27basUn8mmq86+bpz8ZTAC63TVwMh X-Received: by 2002:aca:1c01:: with SMTP id c1mr4028407oic.18.1580412136906; Thu, 30 Jan 2020 11:22:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580412136; cv=none; d=google.com; s=arc-20160816; b=TlAkS+vHz+QDuqEb4M+Ncl219gPBs0IbBPH3IcO8wq/bBRQDAjrLCO1k4NAUQFJi3a iGohA0rZBBabtZBFR2tktvWknh31EWlovpNWIoEQ1pcSEc7cXBbiGMYmzTgLjR0Nwwuc AcvYK+6cSG8V+o6Q7ywpnUn5HICtweBet8f/e165G5kUllQqAHgAkk+iGVacPMDvGx5Q aZMof1VY4LRXtqNq6uy2V9VjSA4ZqnxhtOX8PQEdm4NBv1kmwWywws5a4tDlRNOomET+ WLBclEMA1R3HzSACA1iOCpRBMOzPaM5ewpwTEpXBiE0olk6AiKVnENjLeCgdjXrApoa8 S4mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PYY+5nm2BnDaacYiTBEbd68h7ItJf7lLSrdmjXymEcM=; b=Z6hFm1/T09h0r+M6pVh1W2AdlJ1bcLQBz2XNsrD/+e1bl69e511Kxmkrwe4p9a4olM VA2or7YVK1P4lpO7YjfCfyE9Dt47N69Ueypjd3JKJ3aRAkvpAz1+y64q2C+VDKK1du+W y0LlK90912AHybRrt39zvtRmJwqOD/nc67jxY+2RKs8ESPgNDrt8S853r9wRTGW9zjZK Yq4Zc3bhm3xhjNLMO8vrtIt166jbeGag5EbgupDAMm12CeEDGlbtpPfEUOey6nFvKhTK 0PhlFgDNFEmD7iVIuRgoqERyO+M34K9HNDLj2X3Drr49tIl18Rhi1+ujB0ArUDvI52sv ZGIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zQro36d0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t12si3624772otm.224.2020.01.30.11.22.04; Thu, 30 Jan 2020 11:22:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zQro36d0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731751AbgA3SwV (ORCPT + 99 others); Thu, 30 Jan 2020 13:52:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:52444 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728062AbgA3Snk (ORCPT ); Thu, 30 Jan 2020 13:43:40 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E153B20CC7; Thu, 30 Jan 2020 18:43:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580409819; bh=zuEUBKlZdyeN4POlgMWZuq1e8qLu6fLRLaFLDyY2sQM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zQro36d0HUNnN/x5tXLrbjEVCZgFsS1aT2ko3fDgRLwjqICJ/4UzKtE8REDAiOlCw QNbNc8aKKSX7gGNgBX2Km0awrd8S8GJeubEgC9OkFcFNzKQKLXlAiiArJa91ecPvIx WEJiXH3r9MJ4wQX5t6eYU3PWkG35hi90sooViItg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aaron Ma , Jiri Kosina , Sasha Levin Subject: [PATCH 5.4 044/110] HID: multitouch: Add LG MELF0410 I2C touchscreen support Date: Thu, 30 Jan 2020 19:38:20 +0100 Message-Id: <20200130183620.526273375@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200130183613.810054545@linuxfoundation.org> References: <20200130183613.810054545@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Aaron Ma [ Upstream commit 348b80b273fbf4ce2a307f9e38eadecf37828cad ] Add multitouch support for LG MELF I2C touchscreen. Apply the same workaround as LG USB touchscreen. Signed-off-by: Aaron Ma Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-ids.h | 1 + drivers/hid/hid-multitouch.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 6273e7178e785..2888817261999 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -730,6 +730,7 @@ #define USB_DEVICE_ID_LG_MULTITOUCH 0x0064 #define USB_DEVICE_ID_LG_MELFAS_MT 0x6007 #define I2C_DEVICE_ID_LG_8001 0x8001 +#define I2C_DEVICE_ID_LG_7010 0x7010 #define USB_VENDOR_ID_LOGITECH 0x046d #define USB_DEVICE_ID_LOGITECH_AUDIOHUB 0x0a0e diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 3cfeb1629f79f..f0d4172d51319 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -1985,6 +1985,9 @@ static const struct hid_device_id mt_devices[] = { { .driver_data = MT_CLS_LG, HID_USB_DEVICE(USB_VENDOR_ID_LG, USB_DEVICE_ID_LG_MELFAS_MT) }, + { .driver_data = MT_CLS_LG, + HID_DEVICE(BUS_I2C, HID_GROUP_GENERIC, + USB_VENDOR_ID_LG, I2C_DEVICE_ID_LG_7010) }, /* MosArt panels */ { .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE, -- 2.20.1