Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2838052pxf; Sun, 21 Mar 2021 08:34:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQ7kgr9iel4ys+KizO/Q5dJJAzzR/sGUA37jhbBv4ASoSj/lYsWFHGYhVIWOpmgAt7GY3z X-Received: by 2002:aa7:db15:: with SMTP id t21mr21124198eds.145.1616340869757; Sun, 21 Mar 2021 08:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616340869; cv=none; d=google.com; s=arc-20160816; b=IJYRO5F1b4+OcUPJD0pWhKh/cKj2u2XDWnYT2erzeXMjKQuj+aS5NryIGedX35LCOB OwdGbHOjx0j2aQsibzPv/L17Pi+Ytsrd9f9JAurnmXN1/iXBLiuHUoMGk1Uq+DWVMJDe HxvZ7ieLmIiySFfZYuMcRE1zwzhlCVXVdrkNgzbxyGLr3ezPBpdeN0a+W/7OKxHozFEK uAplE1+3NsN9MpYTHryvsnEgqwF21G+TA/ntfRC15VMEst1U5tNCf335iCqZrgcodbBF M2Hx5KipbG8RUjgq4tpRy4Na4LVUssFPuri1MgPn6VD97HNBamaZ7ArUEs3yqtgpX/dY 8xjg== 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=0KBDSN+M//14LU3MrMHPCIQQOcg9+lHSbWSqHVh3st8=; b=ccCaDhuvX1MKXNE8pLw9WXY78HFksywDoQ9YmM5M0+MepSBrT6OnWLvt/5Cswg7Xy1 DAJq3HWnadQYP6iLXjD7TsNFR9KRQ5M2aF00ktsRn5Y9Ummuylu8Ra7XDklXDS3MezPg dwb2XcJinGY4IVbezkwSsXi9Oeeq0y/Ilh0OSiYuw+sNWsYVX/+TkCuQnEuueHegl9YT 2+LYBCfeYRf315+vWo6RL0e4JiHnP2EvPzk+2zVU8XJ9d4nitsFLavUfl2HVEcZsaN13 G0U6dlds4TUNd6THF16VDnJRR1d77yeIwZVOAI3rIfEJrjn+hKDR64xpt5fbfPj//L7j 0HYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm3 header.b=qoNtAcyN; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=SMsRnAMZ; 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 qh28si9090804ejb.580.2021.03.21.08.33.35; Sun, 21 Mar 2021 08:34:29 -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=qoNtAcyN; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=SMsRnAMZ; 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 S230056AbhCUOLU (ORCPT + 99 others); Sun, 21 Mar 2021 10:11:20 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:48109 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbhCUOLH (ORCPT ); Sun, 21 Mar 2021 10:11:07 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 6CB925C00FF; Sun, 21 Mar 2021 10:11:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 21 Mar 2021 10:11:07 -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=0KBDSN+M//14L U3MrMHPCIQQOcg9+lHSbWSqHVh3st8=; b=qoNtAcyNRPweYLi5sQmbqpiUK/ZI+ /HsSd+gJqVkdNHhQWtTCrwi3UGOJ1dNYY+d8ePP/nl3XyfNVgEPw5oWthSP7iSRE M1ZA0HRxQ+4JfsvEQBmZZRfBZMVOBLQX2Qn9aYUJ6mVmoudu4W4RESPeUGqWB8FA 90klhyX8oTiEZw2i4z/khnKufuRc56fxunkmXE1mhEjrFp/pJApIPzhOttRuXJlW oTWya98/Khk1QKh4Ox2vgLUDgdaB8f9rTtvtrK8RahdBni/WHaoklE7Jq87zXTyz xJ395qTWG0dWCkZabDMaEeJyomOyIpxLR0uvhx4z9kZXA5fUB3GwKgOkQ== 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=0KBDSN+M//14LU3MrMHPCIQQOcg9+lHSbWSqHVh3st8=; b=SMsRnAMZ VudWXUuidvsyli9GCzV3eHKnRBW1eg3po9fqGdlg2fl/qZq9EiFA7VkxX4ObEuhG hzJx9/1ggdwKE8CpFeEBylF5jjQH83Z5/knIOCg6e0t1mcc434Vhc+PI94ZpNlnk Ju3lYsK9DsVBzY75CNUpmmbzwUQC1Vez/9uEN9pgJQuhsYOx4n0MuE4HNH1OKKFI jgHVAxG4JK43KKxNbqtLkB8d7nNU4KIc/jXZE6pN6YQYejO36VO8qwuthIrgkcQT fl8CNoU2HD/rcAQAxZGhFVodOCJ5/BLhPfXPcWIqeLRP8HX9TfPCdEgJWhIeCjsI zBoW/mKw9hHuYA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudegvddgiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeggedtteejke eggeeugfehueevudegvdetjeeviedugedvtdekffekhedtteduhfenucfkphepudelfedr vdejrddufedrvdefheenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrih hlfhhrohhmpegrlhhishhtrghirhesrghlihhsthgrihhrvdefrdhmvg X-ME-Proxy: Received: from ThinkpadX1Yoga3.localdomain (unknown [193.27.13.235]) by mail.messagingengine.com (Postfix) with ESMTPA id 7306D2400CC; Sun, 21 Mar 2021 10:11:06 -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 v3 3/9] Input: wacom_i2c - Add device tree support to wacom_i2c Date: Sun, 21 Mar 2021 10:10:43 -0400 Message-Id: <20210321141049.148-4-alistair@alistair23.me> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210321141049.148-1-alistair@alistair23.me> References: <20210321141049.148-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 1afc6bde2891..fc0bf583d33b 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[] __maybe_unused = { + { .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 = of_match_ptr(wacom_i2c_of_match_table), }, .probe = wacom_i2c_probe, -- 2.30.1