From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC19EC8CE for ; Mon, 13 Jul 2026 01:07:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783904831; cv=none; b=PqqU2R5iIV1GU13akUHIWs695JiSOydJUsRaHCy8W9E7lpblOBqXg423vNtmRgic6NMCRtd6YSwmml3YYWu2mzpspy4i+jUK9cDf4PKLkbR4gxFQsD/j7Kdb3iQ2UENd7cLukvTUxk2w/c+T0DjSE8Azhed+msv3YHlf0TmMxX4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783904831; c=relaxed/simple; bh=f1WgWldKHrmXE7R/dz5NFPkcT6JO/cp0KBP0wOz5Yjk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=FmZogLdbCVWrBzVBHGWV+xzekUuIG0ZJRdzj4dZiBvIF3LvZy4mJQCX+Kf13Qk2Cs1MKC6bOf1AHo6N5/wxYvIiuZ0sL4qwEsWGt/rX8uIptmcm3cCVrdTDAz71dcxTIfiFjxHqY6y5HwXOxyS8rYn4pYNLcslp+RNshIxyf2Hs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=i0kQfdq6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="i0kQfdq6" Received: by smtp.kernel.org (Postfix) with ESMTPS id 2BBDDC2BCB7; Mon, 13 Jul 2026 01:07:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1783904831; bh=f1WgWldKHrmXE7R/dz5NFPkcT6JO/cp0KBP0wOz5Yjk=; h=From:Date:Subject:To:Cc:Reply-To:From; b=i0kQfdq6rB7xNUhRvepApn0tJV+wXxYV35uvb7L14HC77f94PU3Oc51KQaj3ikmgy cm6y7Wscf4NaPHn0Nk474EAU3Poe7qu7mIdOKHFZpKzf51vhZ+b5RyK+ZjWHlzcRmQ cpEbOA6uMW8LpP2eAyS5iZ/fwQBCdRgEr4VaPIzEzpDo+Q1tJ/PkziHLQf3EE20CGP MvC+gX1Zgob6l8luQqnkALXtXr80hBgys18WAuuP3JrXMVNJwKeahmExkbbzCnjTt3 ixAd1ibLHevsF4MoT06u9jiF1iqvqMonYzvvda40N7PA8FsaFRYAAX9jJx965CuwUv NBbxirNyJxvdQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0357CC43458; Mon, 13 Jul 2026 01:07:11 +0000 (UTC) From: Miles Krause via B4 Relay Date: Sun, 12 Jul 2026 21:07:11 -0400 Subject: [PATCH] auxdisplay: panel: Remove unused callback binding code Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260712-panel-remove-dead-callback-v1-1-1091ce75b8d5@gmail.com> X-B4-Tracking: v=1; b=H4sIAD46VGoC/yXMQQ6CMBAF0KuQWTsJbQATr2JcTNuPjtZCWiUmh LtbdPk2b6WCrCh0albKWLTolCrMoSF/k3QFa6gm29qhPRrLsyREznhOCzhAAnuJ0Yl/cDc4a3u DboSjGswZo35++fnyd3m7O/xrH2nbvs/cG1R+AAAA X-Change-ID: 20260712-panel-remove-dead-callback-46b2251e4feb To: Willy Tarreau , Ksenija Stanojevic , Andy Shevchenko , Geert Uytterhoeven Cc: linux-kernel@vger.kernel.org, Miles Krause X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1783904830; l=2301; i=mileskrause5200@gmail.com; s=20260710; h=from:subject:message-id; bh=1uSWTROps+iQmdfCIRsMqqO+F3wcn3YcqYKwgjFvpQk=; b=8iHVN1Ks24K+sQAWiijIGZp9d1fwcePl1Is+19IeoxYL2isnr82SUKl8TnY+oQ+MGjD8GrXR4 rE7iFu/6ZzcBeIkgjpKYXvuiT5L5QjACQfeSWRwAJhkYNIEFgPdrRl+ X-Developer-Key: i=mileskrause5200@gmail.com; a=ed25519; pk=QNhNjcQarqig3ColJBIEr3DYfWM1PHpP7z+6thxWXaU= X-Endpoint-Received: by B4 Relay for mileskrause5200@gmail.com/20260710 with auth_id=861 X-Original-From: Miles Krause Reply-To: mileskrause5200@gmail.com From: Miles Krause panel_bind_callback() has been compiled out with #if 0 since it was introduced and has no callers. Remove the dead function to reduce maintenance burden. No functional change. Signed-off-by: Miles Krause --- Compile-tested on x86_64 with: make O=out allmodconfig make O=out W=1 drivers/auxdisplay/panel.o Sparse-tested with: make O=out C=2 CHECK=sparse drivers/auxdisplay/panel.o --- drivers/auxdisplay/panel.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/drivers/auxdisplay/panel.c b/drivers/auxdisplay/panel.c index d8854cf15268..a7dfc53157bc 100644 --- a/drivers/auxdisplay/panel.c +++ b/drivers/auxdisplay/panel.c @@ -1450,43 +1450,6 @@ static struct logical_input *panel_bind_key(const char *name, const char *press, return key; } -#if 0 -/* tries to bind a callback function to the signal name . The function - * will be called with the arg when the signal is - * activated, and so on for / - * Returns the pointer to the new signal if ok, NULL if the signal could not - * be bound. - */ -static struct logical_input *panel_bind_callback(char *name, - void (*press_fct)(int), - int press_data, - void (*release_fct)(int), - int release_data) -{ - struct logical_input *callback; - - callback = kmalloc(sizeof(*callback), GFP_KERNEL); - if (!callback) - return NULL; - - memset(callback, 0, sizeof(struct logical_input)); - if (!input_name2mask(name, &callback->mask, &callback->value, - &scan_mask_i, &scan_mask_o)) - return NULL; - - callback->type = INPUT_TYPE_STD; - callback->state = INPUT_ST_LOW; - callback->rise_time = 1; - callback->fall_time = 1; - callback->u.std.press_fct = press_fct; - callback->u.std.press_data = press_data; - callback->u.std.release_fct = release_fct; - callback->u.std.release_data = release_data; - list_add(&callback->list, &logical_inputs); - return callback; -} -#endif - static void keypad_init(void) { int keynum; --- base-commit: 30a41cf47aecb4dafb81183b5e046e93498773ff change-id: 20260712-panel-remove-dead-callback-46b2251e4feb Best regards, -- Miles Krause