Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2838743pxf; Sun, 21 Mar 2021 08:35:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWrBPsOM1eAVnW5qFkMrIARVWOFoEEYgF+vrfNci7iDVh8Gp0myPMyz72uYCq4ns4LbmE5 X-Received: by 2002:a05:6402:5244:: with SMTP id t4mr21241000edd.87.1616340956577; Sun, 21 Mar 2021 08:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616340956; cv=none; d=google.com; s=arc-20160816; b=T7rs+x5V5/vnKVorTOW3PzGqg9r4HruDs+CjAXahhhaMZtqnmfweolqajuZgWDxgOG ZPVD4JJDQ28G6/nPBxPKED0Je2thp22h7bfoAkVlXLefbCgur2/wwwgqubYpUMtHCGJ8 XgbUJ/UQWzeM+x6GfxxZDn9MYaj5unPd3YeAq99bfMIf0EigfArFqs/qpJIVYH0R/Zpb MjYSR1BYI9OaDz1Zh2strcfvbxOCMAmtbZhmHF0RsUEjBI4IOIP5pPjDP9JriPLZ8Pe9 lqUk+pFpyalx5VtNjme34m0ENoBtC8HSEwozDO2T2/zk/31TIo0p0X0SohxXRzqryGTs YVQA== 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=ozbx/JQs71euyyD3wNF0SDO5Kj17AC4ow5F+feJkDnU=; b=s4TWvtgZXJcgCnYtAjQDl+zZjFpHiUlP+7+lQFIlGSqyjPYvpHkAbcUk92UfpjXCVT 7HNiF8Kn0bESxgOKMZMsa/h4NekSGmIpH4t261ZYAzaKXbXVncyi3LIpxCrmTNGz43y3 TDvMcnhoWx2140eRs8O+JXDDIxO3RAWtxOrM7WesISqfaROKuuxNnJN05m5YuQZUYk5k PGxGzUJ4C5bmM242slO8bzyn2kA94/BTsnfBUenbtPl3doG/sVFxfAcYzFwvKmuywL78 dOFPJaYcxc7IKyO6glbTkNpGMg4R959khQkzHG7e1AEjrn3v5xLhwewnIRAKvODQfxoZ em7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm3 header.b=TOQq10sd; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=di2JMI0M; 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 u10si8842338ejm.177.2021.03.21.08.35.33; Sun, 21 Mar 2021 08:35:56 -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=TOQq10sd; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=di2JMI0M; 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 S230071AbhCUOLV (ORCPT + 99 others); Sun, 21 Mar 2021 10:11:21 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:55823 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbhCUOLJ (ORCPT ); Sun, 21 Mar 2021 10:11:09 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 73B495C0113; Sun, 21 Mar 2021 10:11:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 21 Mar 2021 10:11:08 -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=ozbx/JQs71euy yD3wNF0SDO5Kj17AC4ow5F+feJkDnU=; b=TOQq10sdpDReyH0+moqlUBa64Ezmf BTgLjQP0qTTnXmEJvHHRqLKRvtwVBJ64zxg3p8YOilZz0XivEwtnWnd/pouiO6et 8uwJU2K8eJhrX+ariUWNxmCtUPB6cvaYVlnG4cp7LwjpTdR8cjzQJX1luMAo9Fim mQlfrmV6tOeBWDSmT5ndodWkY/dlRZXOYdoKHGELma63QDF0QyXCU1i0EqdbTWS8 iKhkPrYEHmE70C88EZn1CGsJfKPI42fCFbMjX+Ykh/mHjjZXmr5QmGM8CgXBAjeE 9JdbCKd+vY+FCfMGA4tNISAWKiBoMy8tJvfT8KXfPegt3PjwLYwpexmIA== 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=ozbx/JQs71euyyD3wNF0SDO5Kj17AC4ow5F+feJkDnU=; b=di2JMI0M qwDO9jwlF5qmfmiI3+ovh1WWvhcowiEsY7Y6YyTeuEoZAv5TmB3g11oCexuuauKM c6YZrfZOWnAhG7V7wk0VFILNyoBQdw3K3TtsTd0DuIUwLymm2BuiIw1uPp9ZwbcH SztUDz40laVhUVMThI8A4e/nnpUkJsXQF71ym8Khw/RUGC7CsmDRS0zNNa0KJ1un ESdg2foMfyLSplmjeYkUbP+Jz4PdxeTER5qWeojZmpvlLPTbeNcxwrX0WJuqSsG/ dlqbo1lzQaDK73y9yahjLJNNwViDmV/UDv4+iG9wDkYskdi/qjZ9A0B2FpKt8uWs JUKSAgUfr4ECwg== 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 7B28F240138; Sun, 21 Mar 2021 10:11:07 -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 4/9] Input: wacom_i2c - Add touchscren properties Date: Sun, 21 Mar 2021 10:10:44 -0400 Message-Id: <20210321141049.148-5-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 Connect touchscreen properties to the wacom_i2c. Signed-off-by: Alistair Francis --- drivers/input/touchscreen/wacom_i2c.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/input/touchscreen/wacom_i2c.c b/drivers/input/touchscreen/wacom_i2c.c index fc0bf583d33b..9b2ed0463d09 100644 --- a/drivers/input/touchscreen/wacom_i2c.c +++ b/drivers/input/touchscreen/wacom_i2c.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -33,6 +34,7 @@ struct wacom_features { struct wacom_i2c { struct i2c_client *client; struct input_dev *input; + struct touchscreen_properties props; u8 data[WACOM_QUERY_SIZE]; bool prox; int tool; @@ -188,6 +190,7 @@ static int wacom_i2c_probe(struct i2c_client *client, __set_bit(BTN_STYLUS2, input->keybit); __set_bit(BTN_TOUCH, input->keybit); + touchscreen_parse_properties(input, true, &wac_i2c->props); input_set_abs_params(input, ABS_X, 0, features.x_max, 0, 0); input_set_abs_params(input, ABS_Y, 0, features.y_max, 0, 0); input_set_abs_params(input, ABS_PRESSURE, -- 2.30.1