Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1618301ybf; Thu, 27 Feb 2020 14:37:36 -0800 (PST) X-Google-Smtp-Source: APXvYqyCqDz+GtCLrrzbOjlP4cbqqEN8IH9nHBTGXMbzpWahfWxqbab6HWBqNFx4d8aQFp6F82yQ X-Received: by 2002:a05:6808:24e:: with SMTP id m14mr1026571oie.168.1582843056047; Thu, 27 Feb 2020 14:37:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582843056; cv=none; d=google.com; s=arc-20160816; b=mHmIatS+HYFFD6e4m63fOSfEy2CFcvoyWIhL/JjXB/gpppe783sn+nWKzkh/5NT4hE F3p1xKvJkkayotaeH4Qvqzn0fH4J5IRQaf1C8xPFIQJOyQXT3oblDrHgytktELq9Vxf3 MCTXvl8m4FWVK3xo6QbQVq9vVdJf6+NErDA+Ml8kWuH+gaMwod3szzOaALvP/Pzm+AeV IEDI+ChQoqMOyp0FwXc4thgaBJ9lRejLXgcdM9Apn88QGVCfjgQjOtoz2lQPByWzrdzz jFPvIW0xDiaclJNUgbDr9Pnp/2qASkDihPMSvNLX0LL3YYqEjoHYVVoSRF2829nEq1n/ tQ+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=ov41UkSl41BMVyDa9tdCim+4xN3JMQqoafhLm9TNTqM=; b=qUwC2pPf7aa6q1HePv9aZR7b05Y7dOFLajrm6eb4RJzFgAq0FfAAVb0yhsfTsGX1Xo Vjn8yHATaPF6REYkrIWJdQAVae9o1Nrs5iRURtK1zaNaTCZqZpIC38V/pAvui4XvwnN1 sj7GdHjZKjbGw1s4pmPvE2WY1Gr5IutDGUc3Pc/JAYAFPYoscwrl/OvVqM3kxkXkKiuw 83onxH4w8uw+Ld329ThwM+WSks0++27gGoObGKuiyIdHmGWUdvRWnRGHnkikiES4ivOO 73vpjCl/xb5D5i6qOY7GQb9/M5d7G8tHZap4i6DVeTOml+wTt94Nnf4CyEC7R/C9kDUJ qCSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@who-t.net header.s=fm2 header.b=u1GqpQiG; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=eY5qbMHb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k205si678140oib.64.2020.02.27.14.37.22; Thu, 27 Feb 2020 14:37:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@who-t.net header.s=fm2 header.b=u1GqpQiG; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=eY5qbMHb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730193AbgB0WgS (ORCPT + 99 others); Thu, 27 Feb 2020 17:36:18 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:58859 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729808AbgB0WgR (ORCPT ); Thu, 27 Feb 2020 17:36:17 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id B4476220BD; Thu, 27 Feb 2020 17:36:16 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Thu, 27 Feb 2020 17:36:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=who-t.net; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=ov41UkSl41BMVyDa9tdCim+4xN3 JMQqoafhLm9TNTqM=; b=u1GqpQiG9pgJ7V9jG/2MoW41kjRlgSIBAyqSUhwiB8W mDxTcYpOy9e/lklTy5qFKlcK2ahs6O3pW67hkFB98SdxTuFUh8sZGfS+zcQDVfEW 04oGRFcWlcQJyphU9iiWDNgJb43AwFm6EDm6KF4cJTC/DApYplVx8ye1CtDpxYND 7IW9nSDx9qBpKac8UOOh+jYllmjT75zmrJpTmDEoK4HF+QefpafuG9W924rwFkIc MPcmK2Eyr4/aX46G3M/S3Vu0QbnxV97UDe4VnZqKWukWeer1o5TB1OJ6jRWZ06eW oTTZfoYhhZhqbXFPJu0O6MMuxRECEZDxcPIPsSjXJKw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type: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=ov41Uk Sl41BMVyDa9tdCim+4xN3JMQqoafhLm9TNTqM=; b=eY5qbMHbuj4CLg60BKVvCA dDsgP7NNqg4h5hPyaqE0T0sidKfmYV3DpTZvJDrMFPH/Ch6FyuQA4NwyKzoBgu+v TwDw+sJCY68Ed46GEVsH7i/astJahl6gglQJlYVTlI8blDabdtHWMsdgjJnkzQMS HPQWVrO/4Dl10qtSKSr7qnLAIQ+QjkAaRCT7yIZBGIM0reOGkuCWXohAHmT048PH rm5EkRlztTSwj3MUEpKvcuAwPOhs7raz+m0fBbHO6VRPiofN38FNIp59KNQKvozU DQIrIglMJNsU8wq6Ladd0qRDHl2BrxwlhNIQS44ZCPrNHwBJ3ZC3JbxEXxHfp3Ew == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrleejucetufdoteggodetrfdotffvucfrrh hofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh epfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefrvghtvghrucfjuhht thgvrhgvrhcuoehpvghtvghrrdhhuhhtthgvrhgvrhesfihhohdqthdrnhgvtheqnecukf hppeduudejrddvtddrjedurddutdelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepphgvthgvrhdrhhhuthhtvghrvghrseifhhhoqdhtrdhnvg ht X-ME-Proxy: Received: from jelly (117-20-71-109.751447.bne.nbn.aussiebb.net [117.20.71.109]) by mail.messagingengine.com (Postfix) with ESMTPA id C4D173280064; Thu, 27 Feb 2020 17:36:12 -0500 (EST) Date: Fri, 28 Feb 2020 08:36:08 +1000 From: Peter Hutterer To: Johnny Chuang Cc: Dmitry Torokhov , Benjamin Tissoires , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Johnny Chuang , Jennifer Tsai , James Chen , Paul Liang , Jeff Chuang Subject: Re: [PATCH] Input: elants_i2c - Report resolution information for touch major Message-ID: <20200227223608.GB1087116@jelly> References: <1582766000-23023-1-git-send-email-johnny.chuang.emc@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1582766000-23023-1-git-send-email-johnny.chuang.emc@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 27, 2020 at 09:13:20AM +0800, Johnny Chuang wrote: > From: Johnny Chuang > > This patch supports reporting resolution for ABS_MT_TOUCH_MAJOR event. > This information is needed in showing pressure/width radius. > > Signed-off-by: Johnny Chuang > --- > drivers/input/touchscreen/elants_i2c.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/input/touchscreen/elants_i2c.c b/drivers/input/touchscreen/elants_i2c.c > index 4911799..14c577c 100644 > --- a/drivers/input/touchscreen/elants_i2c.c > +++ b/drivers/input/touchscreen/elants_i2c.c > @@ -1309,6 +1309,7 @@ static int elants_i2c_probe(struct i2c_client *client, > input_set_abs_params(ts->input, ABS_MT_PRESSURE, 0, 255, 0, 0); > input_abs_set_res(ts->input, ABS_MT_POSITION_X, ts->x_res); > input_abs_set_res(ts->input, ABS_MT_POSITION_Y, ts->y_res); > + input_abs_set_res(ts->input, ABS_MT_TOUCH_MAJOR, 1); official resolution for absinfo is "units per mm", so a value of 3 would mean 3mm, is that correct? Not that it matters too much, since touch major is already all over the place and needs userspace overrides for every device but it'd be nice to at least make this useful out of the box on one device class. Reviewed-by: Peter Hutterer otherwise Cheers, Peter > > error = input_register_device(ts->input); > if (error) { > -- > 2.7.4 >