From patchwork Sat Jul 21 11:48:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Schumacher X-Patchwork-Id: 10538709 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A8DB160311 for ; Sat, 21 Jul 2018 11:48:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C32328C0B for ; Sat, 21 Jul 2018 11:48:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CDEC28BD4; Sat, 21 Jul 2018 11:48:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5DB028BD4 for ; Sat, 21 Jul 2018 11:48:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727542AbeGUMky (ORCPT ); Sat, 21 Jul 2018 08:40:54 -0400 Received: from mout.gmx.net ([212.227.15.19]:42699 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727518AbeGUMky (ORCPT ); Sat, 21 Jul 2018 08:40:54 -0400 Received: from localhost.localdomain ([217.235.83.92]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LwJFG-1g5nxH1y0M-01878r; Sat, 21 Jul 2018 13:48:25 +0200 From: Tim Schumacher Cc: dmitry.torokhov@gmail.com, timschumi@gmx.de, linux-input@vger.kernel.org Subject: [PATCH] input/iforce: Remove the BTN_DEAD assignment Date: Sat, 21 Jul 2018 13:48:22 +0200 Message-Id: <20180721114822.4331-1-timschumi@gmx.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:3qOZWm7a1+ph+D7+Aq/Zzn3XgaHDjlPu8nkxav3aYL7y+bzB/d6 a8OLoC3WkgTzTNPqkDjdSTuRszABF3mLeHrkMds4GkKp0yfl1TSCLqfdak+6wmgpkMvZPbH AGytb4utMT7d5hjgha+qqpKowJ0Fiw3JECLA4OplVirpB7HK4ZW9i/0NRdhAAdTLXb9MCP2 V9WqzW0Pw0mWAX5cMye5Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:CR1d3xil2pk=:skL6zfaIFWIXl129y7xDkx TMQLD94eBxN4dh4jR8iLbjFUOsm58OnMKzuQp/E2zDH3FnYOdMMiZBYLb0bRP3/09ViBQhBA9 ph6mAOqY9pQWNJTJG6zXn62URH64CNu/lY0VYjxzTeZXsHhXyOrfnzMCYbKgUxxYPJel00OUH WTppdKVmqrt17Imy+P23VJfcajjkwG6YuC5zXsnooTgko1Mj0MnCHKIUhlAiNFTDoilS/5uQy TahSaiXCo97s4T7ynqK9GRUEeuSK+l+i3e1QxQyFrT+zcJLg8jzVnSW42/NVrynM3+J7HKoz7 pYNglttKzTvHH4xtz75f8Sz+6Ri70iCExWdDwpcedFzW91GH55Rp34NMvQ1vPJE24PelxnA2i A1+Wz+I42BoPVPijiDdIJQlcaPkEky+TCjMCVgImemFThZBg4U3g0ItXT5+8yYdgMGuIX4HEG UJicvoQUUoiq+ljquIUyJdTX4JVwZwYPVwpLEiEA0yoaS150qb5AnEFSmeXzhj3qBrtcR1HYR U1tQP5LC3r68IWstf1UfpaleIEqG17AuVhNyV1xDs0W3KNCA+W9DpGDHYm5VzKvq+qYW7t+OG 3ZlynBxg7K/NwxJ3FKf0J9P1vwzhydUjw3YJV7wtpLK6/rnlLfxuq+5mXLorGHMfoHy9R/BhU SjRf9i2Vli/7LKUK/0udEaDo8cJ1uLz/hFbuEtcHBrvODqc6wJq2ZdAS4Xji9GaSem7U37XSl FmeRDi1onHAcELd6zuAAe3kHKTWl5u+du7X604cona5mIOZk5tUsyt4iKgs= To: unlisted-recipients:; (no To-header on input) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The nonexistent button assigned as BTN_DEAD is constantly creating false inputs, making the task of (as an example) assigning controls unnecessarily hard. Signed-off-by: Tim Schumacher --- drivers/input/joystick/iforce/iforce-main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/joystick/iforce/iforce-main.c b/drivers/input/joystick/iforce/iforce-main.c index 054abed0fdc1..a4ab58633136 100644 --- a/drivers/input/joystick/iforce/iforce-main.c +++ b/drivers/input/joystick/iforce/iforce-main.c @@ -388,7 +388,6 @@ int iforce_init_device(struct iforce *iforce) for (i = 0; iforce->type->btn[i] >= 0; i++) set_bit(iforce->type->btn[i], input_dev->keybit); - set_bit(BTN_DEAD, input_dev->keybit); for (i = 0; iforce->type->abs[i] >= 0; i++) {