Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp289780lqm; Tue, 30 Apr 2024 23:41:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0FAe5rrNIOqXirSY4ZWWalgGcNs+ZVE1ossfJUwnllxcAcksYly2l21jnWalh/DV7cFcDlCR2NybR4gRgt4djlmr05QQYdmCvRXikeg== X-Google-Smtp-Source: AGHT+IGrQ/FBKwBNXqYHD9SUbzOPXm17+ObKvutiDLmJE9e5MmRRIwAxWkOSm1tXBjGkwQLRZmma X-Received: by 2002:a05:6870:d108:b0:23c:5915:856e with SMTP id e8-20020a056870d10800b0023c5915856emr1825115oac.34.1714545661740; Tue, 30 Apr 2024 23:41:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714545661; cv=pass; d=google.com; s=arc-20160816; b=H/Y1nlLeTbp9534xBRrtHfYMCoJv90qljbRzylE2MwY0kNN6Tvzm4KhN5wQMkoJhmY jmXkpSJDoeDneRazlO8gKSMUjgLMeSasx7UM0m1jYRUlf/niyG7Cu+2k4q9yuPReqt7H OEvpMyS/5nFX8fkDkcv4tWpmBDYI8XWmrXE5+uqwOy0B2GGawC7k2WmnI0p8kqCbffHu 7x3WDpLyDakeNESJ8wZfbJ9gsrxlS5PFdGG3j/mGwGdOAQotFYl7WhM+8ZLGDu2qARlN jCbczVUQRWniHAGv0QRcGNy8b3zBNsLdBpE1C/pmHTypjt7O+K1ldobRlivUd4u+vYof R3+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=M+oQc6JbU4H5ILw/Gp3smalwG/kTbPKlBTcVS0kEisI=; fh=Asujbmya873s+WT3fJA9CSgXm1DSJtLVB19yr03puPs=; b=pEdQPXpji+34JTYDPi+dJwPdQLas3G80olXE7bWTIoGVKzcsdmqrHwYZ9Q3eQAdxWL NtNBXTaOIsSovXolnbT5ItbEzqEYifu6h6T7Bz6M1j62c1GOy26wGngvLandjPbu+pZq WVRJohSMQXaBRJEvpEgUSW7QDZg0886LyULN+F3X/XxEodVyGkehmo7UTKyRa6l4atKM 4KfTSPRvQqfNr0YHpBbNchA8UAcJtjNxu/hYqvcBQhSSI+BWQP/Rhwa3uNcnKYYh6HML 5BUSmE9hwsed029AHCz2em1OgG3ogvYiPdZ/phRUWvq6cvZ3AGFi7GmDXfUtufsysn2E El1w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=WnkAf95+; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-164972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164972-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d13-20020a62f80d000000b006e724b23a4asi23050080pfh.369.2024.04.30.23.41.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 23:41:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=WnkAf95+; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-164972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164972-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4DE7A283960 for ; Wed, 1 May 2024 06:41:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DB283E487; Wed, 1 May 2024 06:40:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="WnkAf95+" Received: from smtp.smtpout.orange.fr (smtp-20.smtpout.orange.fr [80.12.242.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8B097F; Wed, 1 May 2024 06:40:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714545650; cv=none; b=FaNiP+gZTXL4W+RSZMEVeY8JzedGbXabUaPoPOLgomH4xL0zD7FDW6AY2kXCSOMpFs41/V6wFrZZV6wD8uXOfVawhkydRbPCydOro8VCYYOuX5HdJjH94g6oR7hZA6zpoFkP4XJVrf7hj80id3sxogSRlMbWpgPe1+C9VEA+OWk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714545650; c=relaxed/simple; bh=jwpq3kwYkzSPEXjkj9TFl0nGYtXu+Uj8RtrpLHaLqKw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qzaNPUo+t4gi1eua0loyVKJciYZoHWKhi2YdgWghVp7z8bytjDBUaCSPw2077mjbdW3nAbhCLoQ5UO+KqikFgQxiUvXtBcq83ak49Wc7K3LxZtHbnnzEnVXfuXzWfKOs8hpcTF0pih13oR97My6VWNy7yaSRNOEuO0Go5EvyIsU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr; spf=pass smtp.mailfrom=wanadoo.fr; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b=WnkAf95+; arc=none smtp.client-ip=80.12.242.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Received: from localhost.localdomain ([86.243.17.157]) by smtp.orange.fr with ESMTPA id 23cpsg4WsiGtU23cpsV8pf; Wed, 01 May 2024 08:39:34 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1714545574; bh=M+oQc6JbU4H5ILw/Gp3smalwG/kTbPKlBTcVS0kEisI=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=WnkAf95+yRHSkMlpztZS8xaysBAf3t08wYpfMYHH0R9u0FbYZAvbG3PnynE9rdVQk WvqVpb3yQNf7CLlwv/jv7ns7vvvBk+ew/R8YyN6QSKLKHU28ns1HpEQ0NKPHcB8Oql a47Hil64smDlKkazEwBV4sH9ZtbOfB4fdRXtT1ekiY5D7HX1/gD08mYKZFiid/y6uz KaRB+0tB5cF/FtJSmDdzK+FUBmdw7KlxHEXeK2SjmmDeb5b5v5ZZoCM4N1hEEJHWOr U+7mcdbBu1wj8X3KnBvIivtJeO7h6mQ2mqXypTU3429ooU2ppu8W9Pae4O15liyPVB Orh0/FQA/aNUg== X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Wed, 01 May 2024 08:39:34 +0200 X-ME-IP: 86.243.17.157 From: Christophe JAILLET To: Dmitry Torokhov , Vladimir Zapolskiy Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] Input: lpc32xx-keys - Remove an unused field in struct lpc32xx_kscan_drv Date: Wed, 1 May 2024 08:39:23 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In "struct lpc32xx_kscan_drv", the 'irq' field is unused. Remove it. Found with cppcheck, unusedStructMember. While at it, move the 'row_shift' field in order to fill a hole in the structure (at least on 64 bits arch). Signed-off-by: Christophe JAILLET --- Compile tested only. It was added in the initial commit 69690bec400e ("Input: add support for key scan interface of the LPC32xx SoC") but was never used. --- drivers/input/keyboard/lpc32xx-keys.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/input/keyboard/lpc32xx-keys.c b/drivers/input/keyboard/lpc32xx-keys.c index 322a87807159..423035be86fb 100644 --- a/drivers/input/keyboard/lpc32xx-keys.c +++ b/drivers/input/keyboard/lpc32xx-keys.c @@ -57,14 +57,13 @@ struct lpc32xx_kscan_drv { struct input_dev *input; struct clk *clk; void __iomem *kscan_base; - unsigned int irq; u32 matrix_sz; /* Size of matrix in XxY, ie. 3 = 3x3 */ u32 deb_clks; /* Debounce clocks (based on 32KHz clock) */ u32 scan_delay; /* Scan delay (based on 32KHz clock) */ - unsigned short *keymap; /* Pointer to key map for the scan matrix */ unsigned int row_shift; + unsigned short *keymap; /* Pointer to key map for the scan matrix */ u8 lastkeystates[8]; }; -- 2.44.0