Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp496552ybf; Wed, 26 Feb 2020 17:14:05 -0800 (PST) X-Google-Smtp-Source: APXvYqyKG82KRx67WuxdWWrrCxo+6oSv2PODzsbEI9MPuHkZoFDr0wjsn219q4u6AGnIX/UiS368 X-Received: by 2002:a9d:7852:: with SMTP id c18mr1267043otm.247.1582766045081; Wed, 26 Feb 2020 17:14:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582766045; cv=none; d=google.com; s=arc-20160816; b=DdPJrcF0k1ong1wPKH6dR3wc4FHBYdtMUj+sZhRJTKCrpZbRhEvtgqFCcy5+RxtCF2 qDyRZHU4XuVJguY7137AoU72fPYv4oV2M7YZc56IrtI9qIBHsUScDuFIYpdkz03C3bKg yTPGSnOrTpdhxMip+vAEkmhNOu5SDE0Be1OL5EDOVq4Mjb8jhTyW8Ugo6CviClVokIAK uA1ziOga2MYOj8bXcKPz0ASfmg5x92waKM2/wT3vsbbSrOB/KcU91FhAyAnjxoJuvM20 USw7L8zXASYlSt3ZTCuV7d4T3Mg9y9iAAEcIMyJjKPAYhA+q3qfzGJfaVuNm7asOui+W ZcLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=u2M++l49HgIMiqJVF8NUayCcC+Sf9SQePoMMems1GMY=; b=a1J72SJjen4gNWcWWd8cxIz6t8qJHE2CkzeY02A2AJ5zqpHC5YaZFFx0PsGkAp8LcK SMwmgEms60/aLKXEDNhcgebhBtU5CBhy/rdS1sm+0o8LaKBM8QK6vGeALqIixpSt3tFr PUwcc2kM86WCxnUAItrVnz6ps/St71ACO3JZLwzUEnAaFJdZf78jMGD6pz4I3IOjiAAp o+QQFPVafPxQr4pD0q9zrLVFHRSghQFF0M8UMDtzh06WOducVtu2kpqTX0K8btRu3nGH eTJWjwD0oCXwFGUf9M2lfoEB5GmcMs35xq0XHWK/69npgalbYDOgDs0wjYlb+6YmPJj5 Jk5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CxH5jm1i; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y18si646885otg.39.2020.02.26.17.13.53; Wed, 26 Feb 2020 17:14:05 -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=@gmail.com header.s=20161025 header.b=CxH5jm1i; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728133AbgB0BN2 (ORCPT + 99 others); Wed, 26 Feb 2020 20:13:28 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:41196 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727964AbgB0BN1 (ORCPT ); Wed, 26 Feb 2020 20:13:27 -0500 Received: by mail-pg1-f193.google.com with SMTP id b1so529065pgm.8; Wed, 26 Feb 2020 17:13:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=u2M++l49HgIMiqJVF8NUayCcC+Sf9SQePoMMems1GMY=; b=CxH5jm1il+eeCUkqjYwYIz2yiYisGSErXnIp2ysM1FUw/ejlghO+4dkknTPLEL9WkB BQmZ/uZok14YK08M+Z17Z8DEkACkreZQBWFXHjisINOXsbT9lU92vob2VeJy3491VBrR vzp4R+i5makwrC8tpgX9bj+Oj0NkT7q862W3jUumg4ZK5RIpQmZenN2u6IpV23BtbEYr Mx9G+b1l0OnrJdU/4v0eC+g6a8oe2mZiGTRIzQrEGzhZgIiBP3lU46D4RG2GkWia6Ahl XFVX1tLyfMHpNkZaPIa7KgXb5gk3di3ueQmzHFxfKG4bpU1fcbaPPBYjRKp0pufJngyA AhEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=u2M++l49HgIMiqJVF8NUayCcC+Sf9SQePoMMems1GMY=; b=aMPJalcRxSjAXnh0pDX3cCYUWxtwNNZvFKXLC9HlK+v9NOufLeh8F2yceUlTKIW4aD Y4HKFb9klkFcQHi2BJDfNY3vyZp9/RLZuXzbOwDCNMlZXsVFLiIRfl2hoZarKOGJIopw IafLIZGYsxvR4Rmf64MwLenmc/vScssDDNDlGuNXWw6CF2lpGlJVY14kohjRjsOTetU/ /w8eEkrgxNOctM7Z+KRQisx5b1arHcMxhltZsJqA/oFIW2JXdT7O2HqBItkQw13ms96B vvPFTbjdqykrJyPYHXy4PdD+CZDm752aun6Fc8JB4tyBZUMV5rFcGUiYQGku/lsR055u mQsA== X-Gm-Message-State: APjAAAUMKVqH6p/EmDYqcntCbjJTKiI2M4W/HjTLx9xiDV59SoLei9AD BjptGMoGVDNdqkAdK9ptM+aih8XN X-Received: by 2002:a63:4e22:: with SMTP id c34mr1577315pgb.263.1582766006753; Wed, 26 Feb 2020 17:13:26 -0800 (PST) Received: from localhost.localdomain (39-11-132-38.adsl.fetnet.net. [39.11.132.38]) by smtp.gmail.com with ESMTPSA id w25sm4297136pfi.106.2020.02.26.17.13.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Feb 2020 17:13:26 -0800 (PST) From: Johnny Chuang To: Dmitry Torokhov , Benjamin Tissoires , Peter Hutterer , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Johnny Chuang , Jennifer Tsai Cc: James Chen , Paul Liang , Jeff Chuang Subject: [PATCH] Input: elants_i2c - Report resolution information for touch major Date: Thu, 27 Feb 2020 09:13:20 +0800 Message-Id: <1582766000-23023-1-git-send-email-johnny.chuang.emc@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); error = input_register_device(ts->input); if (error) { -- 2.7.4