Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3448578ybb; Mon, 13 Apr 2020 08:17:11 -0700 (PDT) X-Google-Smtp-Source: APiQypJ1xTDhJihc168OZTOhlgadVkXqOZRS8dhQosANCIuP/e+VRjsZ1T5VIx7cj60Y7UFwktX/ X-Received: by 2002:a17:906:855a:: with SMTP id h26mr4785023ejy.56.1586791031743; Mon, 13 Apr 2020 08:17:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586791031; cv=none; d=google.com; s=arc-20160816; b=XhDuwlGJtK5jZA8LNc80IDA3oBV3/WrdPDqu8NOJRgsR8KFVc5VbbAvZr0bJAnpQku kCgrcCDJ0LM0a5n1qGKfwEwjPt/iWkmSn/tVsgqt5rA34NFrhIgmKJpJ5tkx+ud7Vt4g dRxiTir5fTKiE7G3i+ju2wDlpqti4ez3IJqwkYZ9G8QuDT3e9Fo5SBRS+877EtWEpqmf kkrYrGM+vF7XfCe3gn5NneZ+jir4gGw/xfN8hPCgQoIMOnkv50Tf5KqsjZyW4tU8KHKM AYqKr3tfXvhavwDbWYIgncCxORfuo7VAgZBb+tOR7TJvbfpCfcOqmDv6pNJNUQbLCXbK 31PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:content-transfer-encoding :mime-version:subject:from:references:in-reply-to:message-id:date :dkim-signature; bh=L+K0kT+Go1nvTPncAevBjSbt7Q6xf+7CWJgW5pC1p5o=; b=I3Kt9S0T9rzpOb40n+K9hRBcAi5JrosB6sUt8WM3bhJmn5Ez0m9MN0xRu4JbMpn5H+ bHLPmFguNd6s8Cdu3PeHusmj/NDjIV1Dc3aS1y0+ctY3EAYfrl1d+//heEnT0ReIJiTA L5I4ztbDUpYC0wsyOYe3UzUszfMjbl5I8PgXs1PIGhr7+KlAIGSVaT+r2NBGBC1vuKxS OywrBFBshMlwECx4/wwnBJfGM4uc0DXVAb9iLlDE+mYNgnYbnmekO4RuRMtDSnsVIITJ WRTHrGUXMwlJSIcmoqOzdsMq8DkvIJTELpeByGR2bLOVz5rojJ9kw7R/IBQPRii2N7kz 3irg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=VhRHB66T; spf=pass (google.com: best guess record for 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 ox5si6992943ejb.530.2020.04.13.08.16.37; Mon, 13 Apr 2020 08:17:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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=@rere.qmqm.pl header.s=1 header.b=VhRHB66T; spf=pass (google.com: best guess record for 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 S1729924AbgDMNc3 (ORCPT + 99 others); Mon, 13 Apr 2020 09:32:29 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:28189 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729902AbgDMNc0 (ORCPT ); Mon, 13 Apr 2020 09:32:26 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4918gD1Zp2zxC; Mon, 13 Apr 2020 15:32:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1586784744; bh=AMVDMp6lBsSzyLxgYU09hkRV6UlojdPFirY5aL6jJf4=; h=Date:In-Reply-To:References:From:Subject:To:Cc:From; b=VhRHB66TY06ZRbrdI0ruTqdmDxzqAv9a86f6V1+CjW85mOX6YsDNy9Tvm59IpQQu/ aPIvD8YV0EIulVpTHOvV85z0AGi1xei1O3hNTK4eWkryMRYPu2j7PYaXUhkbk2yPeg bskRKli43HqzPxqmbltyGwXmX5MqYn8oPgg2OSrQIlhHjhALveFba5xEkJiAhIxJAV Aa5fT7vgRu5WHgPiTM0GVXc/JFwY+M08rsj3kwh/zyInMkb4M0d2m1FUvUMaz6GJaU +grLFcyk/SX1KAUYCZOWsau7f59klrW+1nJaDYdNRm7JmltdQMkjwU1iCeNbJKTb/a +c2BlGk1aAMzg== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail Date: Mon, 13 Apr 2020 15:32:23 +0200 Message-Id: <62e897b0d6f6054dae26c853a9a1f1fb6d3c420b.1586784389.git.mirq-linux@rere.qmqm.pl> In-Reply-To: References: From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Subject: [PATCH v3 3/9] input: elants: remove unused axes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: Dmitry Osipenko , Dmitry Torokhov , Henrik Rydberg , James Chen , Johnny Chuang , Rob Herring , Scott Liu , David Heidelberg Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Driver only ever reports MT events. Clear capabilities of all others. Signed-off-by: Michał Mirosław Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko --- drivers/input/touchscreen/elants_i2c.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/input/touchscreen/elants_i2c.c b/drivers/input/touchscreen/elants_i2c.c index ddebd3741145..fcd3d189f184 100644 --- a/drivers/input/touchscreen/elants_i2c.c +++ b/drivers/input/touchscreen/elants_i2c.c @@ -1312,17 +1312,6 @@ static int elants_i2c_probe(struct i2c_client *client, ts->input->name = "Elan Touchscreen"; ts->input->id.bustype = BUS_I2C; - __set_bit(BTN_TOUCH, ts->input->keybit); - __set_bit(EV_ABS, ts->input->evbit); - __set_bit(EV_KEY, ts->input->evbit); - - /* Single touch input params setup */ - input_set_abs_params(ts->input, ABS_X, 0, ts->x_max, 0, 0); - input_set_abs_params(ts->input, ABS_Y, 0, ts->y_max, 0, 0); - input_set_abs_params(ts->input, ABS_PRESSURE, 0, 255, 0, 0); - input_abs_set_res(ts->input, ABS_X, ts->x_res); - input_abs_set_res(ts->input, ABS_Y, ts->y_res); - /* Multitouch input params setup */ error = input_mt_init_slots(ts->input, MAX_CONTACT_NUM, INPUT_MT_DIRECT | INPUT_MT_DROP_UNUSED); -- 2.20.1