Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp479534pxb; Thu, 19 Aug 2021 04:22:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9tz6UYCNYqY+mUZR6tnxeLA7DzSHgRXknv/un1Ux5+4FLUOd5jqzhzW//7pELv6cZN9xG X-Received: by 2002:a02:a81a:: with SMTP id f26mr12460756jaj.79.1629372123806; Thu, 19 Aug 2021 04:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629372123; cv=none; d=google.com; s=arc-20160816; b=T7Cg30YTLtdHHtRWCX3HSNniS3nvNGFrCsJ+VPS9ktqCQ/9XgtcDxLZ946Czq7q6B/ OR9B5xWInyq17ocnZg3CaKnc6hlzXufe8LMonQ0GbxJUOWFQJIjpHMXSIFkuHIIjHtVN RO6g0Cv6Y08mXoKpDnLXEWqmJarR6YS7n6VqcoSoS3jOA52rt2Uh/tfapHSMToaiQGFB sEoEZzRnn5fSk9vjWpm+0RU+jy4IsBN2TlND+han4FyQIfKi9iFC/+Z8q7MlXpI3Ab08 l0wZO/j/S/MvjE4JYbUu8EIUPieu9qPAsJ8Krr8VBkfo+svv09dUnOP4C/ByNAuDITDD ZElA== 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=boCs0ruB4BNYhvgNui9ILltvTwL+hWA5xqDDeOlgzxtF6t5TI4bey6LLMWSGOQ0wUo P1R8Mopeb9Cj+Q1W3OERZCEA6EmB0+xDRjphOI3jt+EJB2ZIdE8A+Iso7Ztx9svxUwz9 TKqEb3tT6ze4N+5mMJQ7dxT7Ami6VzHBIGix6/Bd1+QUQJ7FL1Vi/izaKUz151MJI6N3 AtdJWmXbJuBSXuAp0nlmxpNMdIAPa7VmFzea1YBvlUbogeZ84LuY8d9QRRuannm8n23F B1A1ZBOrzOGxUZLUfzcSj0oC5tkOuxac1Bz5WvOg1wkU1p00SF04QILibQMZ9XPHR9rd mx5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm1 header.b=FZjrgi31; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=FmGFZrfQ; 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 k2si3079081ilu.143.2021.08.19.04.21.52; Thu, 19 Aug 2021 04:22:03 -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=FZjrgi31; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=FmGFZrfQ; 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 S238652AbhHSLV1 (ORCPT + 99 others); Thu, 19 Aug 2021 07:21:27 -0400 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:33915 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238612AbhHSLVY (ORCPT ); Thu, 19 Aug 2021 07:21:24 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id 22DEF580C0E; Thu, 19 Aug 2021 07:20:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 19 Aug 2021 07:20:48 -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=FZjrgi31aOzX0tC6eplSIA2U+IRFj 1WmbGK0x5ng6hApjS/cZJSanEM7O1hseqJyXEX/fqZAXcmIE/ZEIlzVYUf4DhQ8G YPR+OTp5XXMJJMY8TEA9zkAhlBLS/5dgzUGIUREsR9koukUr0dCzQWBAATaz3JjT MMqZmRsr7jnIjn1WAiaTTTFdDueJAZBiszLeC9k5H2GVXj1rDdUanIQwLIl61qZp wKO4+YB8ER6q/PuFek00ElxotaZpVlpPpWdUo5obQymUbsUXfakMli2yRFppoB79 vGKVaag+SmqMpivFyu1y1h59uJjkPbxNoFkFgthM4bd2v/6Ma7EctYORg== 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=FmGFZrfQ ACGV/GXTGXAhjL5BNsDgDSjBrL8NtK7qbSPRlZG3srDO+/zF0z12nXYhGpXQzh4n /+BrorSAxJnW/lfrGJHM+QO4ltIFNdop23tZijRpKS3kHh1zc12qTXSDqZ9pSdHK iw5jH0ziYYmNh7QAAXlekUukgfZjG0MetyoBm0lxoxCS2BhAC31xECSeUbAt/o03 bq80VtU+gIJYEDWKfWfva1NopX2R3GreH5I4+uisIoVug4AO2jGQEDqNP9QVfvGb jWXjAtRRM+oekDSWgN8DO5MOIlwKGIuzAj3DzlV6ZiGh/qXohQouMR7Y9mgaF1Lk ExYenqvgXm7RNg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrleejgdefjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpeetlhhishhtrghirhcuhfhrrghntghishcuoegrlhhishhtrghi rhesrghlihhsthgrihhrvdefrdhmvgeqnecuggftrfgrthhtvghrnhepgeegtdetjeekge eguefgheeuvedugedvteejveeiudegvddtkeffkeehtdetudfhnecuvehluhhsthgvrhfu ihiivgepudenucfrrghrrghmpehmrghilhhfrhhomheprghlihhsthgrihhrsegrlhhish htrghirhdvfedrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 Aug 2021 07:20:43 -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 v9 03/11] Input: wacom_i2c - Add device tree support to wacom_i2c Date: Thu, 19 Aug 2021 01:49:27 +1000 Message-Id: <20210818154935.1154-4-alistair@alistair23.me> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210818154935.1154-1-alistair@alistair23.me> References: <20210818154935.1154-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