From patchwork Thu Oct 12 15:04:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Niestroj X-Patchwork-Id: 10002177 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 BDB4060325 for ; Thu, 12 Oct 2017 15:29:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD28A26D08 for ; Thu, 12 Oct 2017 15:29:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A13AC2841E; Thu, 12 Oct 2017 15:29:22 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 B3C0626D08 for ; Thu, 12 Oct 2017 15:29:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751441AbdJLP3U (ORCPT ); Thu, 12 Oct 2017 11:29:20 -0400 Received: from smtp.megiteam.pl ([31.186.83.105]:56717 "EHLO smtp.megiteam.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752757AbdJLP3T (ORCPT ); Thu, 12 Oct 2017 11:29:19 -0400 X-Greylist: delayed 1466 seconds by postgrey-1.27 at vger.kernel.org; Thu, 12 Oct 2017 11:29:19 EDT Received: from [95.143.241.142] (helo=localhost.localdomain) by smtp.megiteam.pl with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e2f2Y-00013x-1D; Thu, 12 Oct 2017 17:04:50 +0200 From: Marcin Niestroj To: Dmitry Torokhov Cc: Rob Herring , Mark Rutland , Bastien Nocera , linux-input@vger.kernel.org, devicetree@vger.kernel.org, Marcin Niestroj Subject: [PATCH 2/2] Input: goodix - add more entries in i2c_device_id Date: Thu, 12 Oct 2017 17:04:43 +0200 Message-Id: <20171012150443.27542-2-m.niestroj@grinn-global.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171012150443.27542-1-m.niestroj@grinn-global.com> References: <20171012150443.27542-1-m.niestroj@grinn-global.com> 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 Add corresponding entry in i2c_device_id table for each of_device_id entry. This makes it possible to autoload module for goodix touchscreen device-tree entry, based on modalias (which is generated by stripping manufacturer prefix from compatible string). Signed-off-by: Marcin Niestroj --- drivers/input/touchscreen/goodix.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index 9d50d9688975..4b702b363677 100644 --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -902,7 +902,15 @@ static int __maybe_unused goodix_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(goodix_pm_ops, goodix_suspend, goodix_resume); static const struct i2c_device_id goodix_ts_id[] = { - { "GDIX1001:00", 0 }, + { "GDIX1001:00" }, + { "gt1151" }, + { "gt911" }, + { "gt9110" }, + { "gt912" }, + { "gt927" }, + { "gt9271" }, + { "gt928" }, + { "gt967" }, { } }; MODULE_DEVICE_TABLE(i2c, goodix_ts_id);