Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3813185pxf; Mon, 29 Mar 2021 12:10:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXQFbzUk2027OqC3ev37BmRfJX+TUHdqGePVtb1Z8RXqhG2UUhlzRG4HSHvT4hlLAb5Cs5 X-Received: by 2002:a05:6402:110b:: with SMTP id u11mr31076211edv.356.1617045027914; Mon, 29 Mar 2021 12:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617045027; cv=none; d=google.com; s=arc-20160816; b=isLXn3ZmCQKwO8LJTYKJWVx9Of/tr7Q/rdtkbWCSL0cPjalfoxkhmGs/2HLGKsIfOt vDgSHzhNy6MAKMbXkQGwM3RTatqPHU2gRs5t4rMo/Ib/rSHs9L8QI7ljAejutU932BRj G+P+ztJ0Wf4YF/ho2N3Wg3OsugIIhSDFS9HOAvxeuL6uzANnrUNPaes5UZJK0PBn+Rfh Uh10l8Fr/htCE+xNpDHFEstT3tjT4LT+9txDCDN6/uLvLToSiZeOaqnIPh9SALfx0w9U UtBO8CcgOig7onBlO3UWo5FX2ytBYgMGKaVR83BRtKnAouAza825EZYrxRbPYiA249oW OPyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=A1aSVQ8Nbla/MB0w7R8S6KttISqOIat+NhW/HJUeyVI=; b=qGVC0DaNUOjvzpDfFpdVSGWvu151KCD05Q9WhEiAx9uZuljrc3H9ArmP/Pihrvt+Q2 lUCj0qhkKCfn1SvNfze2W6t2KRDUU5HATEXWfhctQnLbH/hOXHlicVWgpoYSfzLKJySd GELqaMsKRwkgLzh3oGX0eDJ4g5KqCDoVp4U63KB2mDE+8nLR43mzKR27qAYElXlgHeNQ mhNpyBK/FPkBvBHOOokREOYkdQXKyLgk0wWQQTejFtxABTPHIzPMUCJks9DqYcVx6trk Mohm3an+NAGOVtN5SxQYmXRA9Qm72BGLWtXW103z3/H92YugBCF5LDrZP5itCXn75i9T JaIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kDUcdMl7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si13273853ejb.97.2021.03.29.12.10.05; Mon, 29 Mar 2021 12:10:27 -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=@gmail.com header.s=20161025 header.b=kDUcdMl7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231522AbhC2TJI (ORCPT + 99 others); Mon, 29 Mar 2021 15:09:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231509AbhC2TIg (ORCPT ); Mon, 29 Mar 2021 15:08:36 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFD1FC061574; Mon, 29 Mar 2021 12:08:36 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id q5so10470297pfh.10; Mon, 29 Mar 2021 12:08:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=A1aSVQ8Nbla/MB0w7R8S6KttISqOIat+NhW/HJUeyVI=; b=kDUcdMl7lx9WyPlIQtpfVX26FPaRgsdULjFNf2y3uRlptPKdlmr113tFoGnfe1FBha 8FXzDQvJdS4uidnag+vN447OWGuhKoEna/HwkbHQwSN3Z6g7D/BGLHvE+TRCUIQYOnYq z5iKsyheHZfMuPVfd0NY+f5YXOEMkqB4AoTGJ7iDU3UWbquUBgnHtMMz1MTzy2lYvcL7 P2BQYmjc1bxXYTC/rt1ay/xFdI/fYDMABjaPZLaoN6XFeisf1+XSzPkUmXDnPMRzxHb0 u+nYTP3QN2pp4NWodJGSD1e7hc47IXuEMfNRP4BB6hvnECuLy01/O7wGTi/ferb47Qzs 92zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=A1aSVQ8Nbla/MB0w7R8S6KttISqOIat+NhW/HJUeyVI=; b=UTtp1fP/6ZN54aga2dfjgOhKIiYHhbMW7yEp69CxHet3q6wBEBUgPEeFEElGgVrxZF +m1e2gksK7770UjcYRWIvh5tj8OaCl2N5bNV5WfF54Sby5D7nkDg09sgbbSmzASLyx/+ ZjpuP8frtbYEjHqGSH/fSCu1BmOlJgTrAHSvJAdQl522HOR5np9WCqzCq2s9iBQ83n7o qRQG17Q9tEbqcmqmYPN5XtYNwCwT6GWXF8X7ggg8ttNwQbG1NLCvmxypNJ/Qfy0fcP17 2KZNHQ49zhWeJ6OHdXfUjZk4v1DiebbfrT/vcEmDEsTWYmxbzFgB4LttNnErntypiBZp hHAw== X-Gm-Message-State: AOAM531DDcpKvKAc5obatStIM44uBn/l+4NDtGem2Y6pD1fFpJ3mK2Sp wJ4/p0d5uEvDOplYMZgdrhCsSFYHw20= X-Received: by 2002:a63:ea53:: with SMTP id l19mr24554459pgk.176.1617044916075; Mon, 29 Mar 2021 12:08:36 -0700 (PDT) Received: from google.com ([2620:15c:202:201:a82a:a913:988c:7480]) by smtp.gmail.com with ESMTPSA id y23sm17862356pfo.50.2021.03.29.12.08.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 12:08:34 -0700 (PDT) Date: Mon, 29 Mar 2021 12:08:32 -0700 From: Dmitry Torokhov To: Alistair Francis Cc: linux-input@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, linux-kernel@vger.kernel.org, alistair23@gmail.com Subject: Re: [PATCH v4 04/10] Input: wacom_i2c - Add touchscren properties Message-ID: References: <20210326015229.141-1-alistair@alistair23.me> <20210326015229.141-4-alistair@alistair23.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210326015229.141-4-alistair@alistair23.me> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 25, 2021 at 09:52:24PM -0400, Alistair Francis wrote: > Connect touchscreen properties to the wacom_i2c. > > Signed-off-by: Alistair Francis > --- > v4: > - Add touchscreen_report_pos() as well > > drivers/input/touchscreen/wacom_i2c.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/input/touchscreen/wacom_i2c.c b/drivers/input/touchscreen/wacom_i2c.c > index eada68770671..ee1829dd35f4 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,9 @@ 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); > + touchscreen_report_pos(input, &wac_i2c->props, features.x_max, > + features.y_max, true); ??? This goes into wacom_i2c_irq() where it previously used input_report_abs() for X and Y so that transformations (swap, mirrot) requested via device properties are applied to the coordinates. Thanks. -- Dmitry