Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp941930pxf; Thu, 25 Mar 2021 18:54:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx80TKbzp/AI/UEKcA1KJc8vaJCUJePfC3itFd3GppaM4G9FpmEyyW4ObYAx90iCN8EOdmV X-Received: by 2002:a17:907:2075:: with SMTP id qp21mr13113091ejb.451.1616723671042; Thu, 25 Mar 2021 18:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616723671; cv=none; d=google.com; s=arc-20160816; b=AZRRe688YPds4jRuQtIDnokwwd8mlx4GQqX80tQ3By3NtqvCElPZ1eFOVcYzAo5OI1 xKyERCt524zNJgM+uVm/as09LqmlsdlPqzB4iSVis8P4DC61QyGTXQIsHUAHfVIWQM8K 7FOW8yts3dIId7YIun0rJWJpKnJ7uVZvzvnx0b8WdLMitRZYLL+4q5KkRE5dzaIQBV+d Zyq34MsQXoP+Dr/3suPzPxpwaON+BankaNuIxVc9026g7TMtiQTjdS4/cF9JVAVa8h9u KzCJv9pRWbLSDDsCKCB7c5ZKHOZMrbI4Lt/4antYK4r7XTGogauiu/wQi1OHR4khfjav cFEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=2HPfEt7M1INSJcMo62SZ395Kk+lvdGvgttkGIp4imdE=; b=gedUm/1d88RHaW/Qp0jQ9ao2yh11SnKEIYCpBG/KXtwlGJLBVlR7CvCZXMELUU4+fH 7wOb3CFFEBaP+IZNElyNdzLNUBYG4lwa9qLKuwj8JyDGipdLTD8w5/sbBQvx4B+xgtUU COsSD6Y8LXZuXIwPFcH4EK2URmT6nXh5dY4G7GartNUQBO4JqZAG6a708+lAaw1SiiBX yelhk9Ye6RplAB/GDxfw5XuS9wKGsZ38GXlmG45U89MQD5pHBIo6f+L3A4ebq94/PzER jB41r7fCfsbkhPlLc8ujHoGh54uerhRwGVs/runI0HSMqiSPNcJi/xb1/QhkdQZ6YDlW gRAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm3 header.b=klwS4Gxu; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=h4I3QcPn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t23si5306363ejj.290.2021.03.25.18.54.08; Thu, 25 Mar 2021 18:54:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm3 header.b=klwS4Gxu; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=h4I3QcPn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230411AbhCZBxP (ORCPT + 99 others); Thu, 25 Mar 2021 21:53:15 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:35431 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230247AbhCZBwo (ORCPT ); Thu, 25 Mar 2021 21:52:44 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id C86F55C00FF; Thu, 25 Mar 2021 21:52:43 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 25 Mar 2021 21:52:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=2HPfEt7M1INSJ cMo62SZ395Kk+lvdGvgttkGIp4imdE=; b=klwS4GxuaHRgLj5VvlSveY0KrgEu1 ukKVKhwxOExtJVBnkXeltMJjkq6mAzQzGJXnEF9HpwNl3TLBmQWHlt9s3VikT5lS lM/1MC+moOE3b/vo7y9WXwBiv/Wj+FKNqBhsggPgZEkmVFaSKX6el6bUNMSFu7go eQLQylxHgjIJNZNcXQej1blHu/7ZrOOhKHDhJcHBZMNU0RWRsRmNRypXsmxi/H7U +3xByktnsr67+v0iNulxJqTwev7o9+KRUkkt1KYvvJ1WMDgfg+cOA+bb7ZSJoAmm OHYNoIzYWRgxjy7A5UV4PzCAThowKAjwVK3qyxr1jugc/a4ziQYaWu1yw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=2HPfEt7M1INSJcMo62SZ395Kk+lvdGvgttkGIp4imdE=; b=h4I3QcPn JLRHoUPITQ8RbbI6kDGBmpQqT/gUGRierIVxh5MYo4oTQtQpdMtfSCWhxUODYdS3 35LII5JEwXZU9yH5n53HCU4m20nc8S1D8a/HNH08JBUg9JxlxpHw1MiENCLjgA4A yTRGozX07GKQVy1+7TCfUFLkq4qa09tPL67XeosxBM01U+gHu3OkxwSAFKNCktXH RReh5npakvTdnVagTNur1+GYJpoiFhSts9KKnPuUqg90iWi6C2rXKydxnvgwhC05 e1MSqy2ZT1qKiL0AepttRxX+q/jabF25n5nzLvZAhQWKiP9LkO5ZlaMs24j2r+DA 4B5lPsiUvRia4Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudehuddgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeggedtteejke eggeeugfehueevudegvdetjeeviedugedvtdekffekhedtteduhfenucfkphepudelfedr vdejrddufedrvdefheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrlhhishhtrghirhesrghlihhsthgrihhrvdefrdhmvg X-ME-Proxy: Received: from ThinkpadX1Yoga3.localdomain (unknown [193.27.13.235]) by mail.messagingengine.com (Postfix) with ESMTPA id DE2F81080063; Thu, 25 Mar 2021 21:52:42 -0400 (EDT) From: Alistair Francis To: dmitry.torokhov@gmail.com, linux-input@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de Cc: linux-kernel@vger.kernel.org, alistair23@gmail.com, Alistair Francis Subject: [PATCH v4 03/10] Input: wacom_i2c - Add device tree support to wacom_i2c Date: Thu, 25 Mar 2021 21:52:23 -0400 Message-Id: <20210326015229.141-3-alistair@alistair23.me> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210326015229.141-1-alistair@alistair23.me> References: <20210326015229.141-1-alistair@alistair23.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allow the wacom-i2c device to be exposed via device tree. Signed-off-by: Alistair Francis --- v4: - Avoid unused variable warning by not using of_match_ptr() drivers/input/touchscreen/wacom_i2c.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/input/touchscreen/wacom_i2c.c b/drivers/input/touchscreen/wacom_i2c.c index 1afc6bde2891..eada68770671 100644 --- a/drivers/input/touchscreen/wacom_i2c.c +++ b/drivers/input/touchscreen/wacom_i2c.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #define WACOM_CMD_QUERY0 0x04 @@ -262,10 +263,17 @@ static const struct i2c_device_id wacom_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, wacom_i2c_id); +static const struct of_device_id wacom_i2c_of_match_table[] = { + { .compatible = "wacom,generic" }, + {} +}; +MODULE_DEVICE_TABLE(of, wacom_i2c_of_match_table); + static struct i2c_driver wacom_i2c_driver = { .driver = { .name = "wacom_i2c", .pm = &wacom_i2c_pm, + .of_match_table = wacom_i2c_of_match_table, }, .probe = wacom_i2c_probe, -- 2.31.0