Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2265952pxy; Tue, 3 Aug 2021 01:51:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9lfDWbpDciDeDjpAPP6v5JVtt/3yvRWcDfTpGseE+PH+XeJxlrSWwajTLOEXycUkBpbJQ X-Received: by 2002:a05:6e02:b4b:: with SMTP id f11mr249660ilu.130.1627980661670; Tue, 03 Aug 2021 01:51:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627980661; cv=none; d=google.com; s=arc-20160816; b=n72PfpjlI3ylGRuQ7G2Zo0KxX04w/pZufGNGjUHjExfbef+7ocFFDPf3iiWU4eK7ia xYDLy7rfswTPqxwmfNwBQtFgLhpU/eL0NBnXBZyL9spzrgxDZIZ3dgURWZHOMzzeCqHO Ub4GyZOz6y+a9CGcB5BPaMMu5QJMAyTZtSG8a+DKg51qrlMlfQvP+hehi5DyPGwX6KxU CfCwQIp62f/xIitUepx7tyjc7WbGjvTBjRJNrHSeXi11rBclZ2GR95NLLfgIT0aeEVkt EcdUXKWjhErfK8yuL8GHQSbS0PouLySO4yiH3uSbZDrK+YFwFRpIMIDAfyp98XvLgiAZ 1NUA== 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=PKUtGSy8iZDEYlpTbw2VI9ddzDZdqrWO9usf566B1Ng=; b=dU7O73gJ2Cg2CmjDki+5SrToY8Jrq9LUFDCZEXS7vIgS8IA8v+DUf/93PlJzgmm/AE mGg5RxYOT/H3o4mSNZdJqXqdGEBausN8HghvF47euYH6zO9A0oG60TUozaKMtgeY0gMU y1f4XkSZeqSHzSp1Ih+FFkf0qEn5qLD/IAqtUsAme22dFZn7uz8jTEmgyQlHBhbkd8YJ B15kmkcbpYuokEH2rS7hPgqc4tmDjQABUHzpP29oeEaJLzbgUo7k5SMa7kqqV2O6B2Kw F4CY8MsEk8G19eMETXnlyYIti5weQUC50R5GqSQdLanuD46nRYxky8FWFpjMDcvvLgQy ztqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm1 header.b="T0svpK/H"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=BbSBcnuE; 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 w4si16223898ilm.77.2021.08.03.01.50.47; Tue, 03 Aug 2021 01:51:01 -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=fm1 header.b="T0svpK/H"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=BbSBcnuE; 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 S234767AbhHCIte (ORCPT + 99 others); Tue, 3 Aug 2021 04:49:34 -0400 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:52235 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234622AbhHCItd (ORCPT ); Tue, 3 Aug 2021 04:49:33 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id E08D65809FE; Tue, 3 Aug 2021 04:49:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 03 Aug 2021 04:49:20 -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=fm1; bh=PKUtGSy8iZDEY lpTbw2VI9ddzDZdqrWO9usf566B1Ng=; b=T0svpK/Hftb2aU/J3aQiwbMPEE36/ 7kfZVWEvFFU3S4vIuMD5Y9WFDMYlpOPYXxG+x1NY0PQS3WtlxFD1ouqtoffI6YYc 30xpGtRp2YbcGDsCRAiu+mtueYumMO/Wtg+RxYkhlF4pAkq1IGgn3/oLnhXoOILL Q66m/3iuUlRC4FkfoLztxNxo9E3aM2LgtVM3DsfW4xYg3XgqfJykpEOe9Ci6TMUG eBrCcx1VJTApxaWLjZ+SOlml+p3tuyn5KFLoA0udk65r0uTkTGiY0QDoa/QuhjOD 6eRLFEcxm+oHwgp45T6Mtv4RsWyhirW9V4+A9hOvtHVetRXpgaRuXsL3g== 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= fm3; bh=PKUtGSy8iZDEYlpTbw2VI9ddzDZdqrWO9usf566B1Ng=; b=BbSBcnuE dyUHrc1CoDFauqrHWqPaMD6G3YoHkSgaMwkXnYHi0Uy/isfCXWqBn1umfEEiuUrC D11LrWABJ3UCJQdYyKy6/lsN24oVnh120TOMmkKFRFfphYVoHEL/URGMozwfRmm3 PgODCtAqLhTextMe/JWzPO9E+MwFtOPXQS2l2iEy9A3TPSKCfpJ59Atky3SB4dsT eydqJHGf2hgKIUcgUvX1pGjRwHUUZLjIM3QRFSTggbxr29BYU1tn3/b/BHmTn+53 yUu3Esf+wMcG4p5HEiZINzucgF2MuoiyLnVIMZLomFg/Z6zb4ftKaZdCHBYAROSy Xy+t+0PIdQZXYA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrieeggddtiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpeetlhhishhtrghirhcuhfhrrghntghishcuoegrlhhishhtrghi rhesrghlihhsthgrihhrvdefrdhmvgeqnecuggftrfgrthhtvghrnhepgeegtdetjeekge eguefgheeuvedugedvteejveeiudegvddtkeffkeehtdetudfhnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlihhsthgrihhrsegrlhhish htrghirhdvfedrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 3 Aug 2021 04:49:16 -0400 (EDT) From: Alistair Francis To: dmitry.torokhov@gmail.com, linux-input@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, pinglinux@gmail.com, tatsunosuke.tobita@wacom.com, junkpainting@gmail.com, ping.cheng@wacom.com Cc: linux-kernel@vger.kernel.org, alistair23@gmail.com, robh+dt@kernel.org, devicetree@vger.kernel.org, Alistair Francis Subject: [PATCH v8 3/9] Input: wacom_i2c - Add device tree support to wacom_i2c Date: Tue, 3 Aug 2021 18:48:56 +1000 Message-Id: <20210803084902.336-3-alistair@alistair23.me> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210803084902.336-1-alistair@alistair23.me> References: <20210803084902.336-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 --- 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 22826c387da5..6053595f2b30 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 @@ -241,10 +242,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,i2c-30" }, + {} +}; +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.1