From patchwork Wed Dec 11 16:03:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= X-Patchwork-Id: 11285603 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 595781593 for ; Wed, 11 Dec 2019 16:04:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3670A20836 for ; Wed, 11 Dec 2019 16:04:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=rere.qmqm.pl header.i=@rere.qmqm.pl header.b="lQcMaYOB" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388197AbfLKQEK (ORCPT ); Wed, 11 Dec 2019 11:04:10 -0500 Received: from rere.qmqm.pl ([91.227.64.183]:27065 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731730AbfLKQDZ (ORCPT ); Wed, 11 Dec 2019 11:03:25 -0500 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 47Y1tf3bQ3zr2; Wed, 11 Dec 2019 17:03:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1576080202; bh=N1DETPeiiOTp21rY2KPGTqO/jDYMMO2xX2UweoIqUmA=; h=Date:In-Reply-To:References:From:Subject:To:Cc:From; b=lQcMaYOBYanPCD12XvD4+y8YbC51HJJIXOSb0dmverlUR5cwNM0EVgN/R0GrOoM9G ohRPm0mrpYBcxUjEUvWFQkr5wc2NIGGShKc3lRQhkDitAAqHCQN091wkMlZztLFElw yv+N2a6qFfE4wNe7bNxmCqE/AoW1QU8meYZrAHEXaEbhf7YsCrPTPkm7XI383t3WmE ZkaHJuS/6Ki6iPAocIjdaalhX/UclDYdk5rIVL3tt4xWzUMe3IbbLj+oG3g2NQJC4k 9WQvE12xNCvq0KnQ9zyuZ8zDnTrM/zyKfHOVSRrSJGCSD8urRr0Pp0UZSHvhTJlpNM DHGMYUh4X+Y5g== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.101.4 at mail Date: Wed, 11 Dec 2019 17:03:21 +0100 Message-Id: In-Reply-To: References: From: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= Subject: [PATCH v2 3/9] input: elants: remove unused axes MIME-Version: 1.0 To: linux-input@vger.kernel.org, devicetree@vger.kernel.org Cc: Dmitry Torokhov , Dmitry Osipenko , linux-kernel@vger.kernel.org, Henrik Rydberg , James Chen , Johnny Chuang , Mark Rutland , Rob Herring , Scott Liu Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@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 eadd26d5a06f..ab9d63239ff5 100644 --- a/drivers/input/touchscreen/elants_i2c.c +++ b/drivers/input/touchscreen/elants_i2c.c @@ -1251,17 +1251,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);