From patchwork Mon Apr 11 13:04:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 12809096 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F19CC433F5 for ; Mon, 11 Apr 2022 13:04:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243259AbiDKNHB (ORCPT ); Mon, 11 Apr 2022 09:07:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240978AbiDKNHA (ORCPT ); Mon, 11 Apr 2022 09:07:00 -0400 Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F5301277F for ; Mon, 11 Apr 2022 06:04:46 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:b509:6862:2557:437a]) by andre.telenet-ops.be with bizsmtp id HR4j2700F1G7NMJ01R4jp7; Mon, 11 Apr 2022 15:04:44 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1ndtil-000ATM-9G; Mon, 11 Apr 2022 15:04:43 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1ndtik-009Jdx-S8; Mon, 11 Apr 2022 15:04:42 +0200 From: Geert Uytterhoeven To: Dmitry Torokhov Cc: Randy Dunlap , Mark Laws , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH/RFC] Input: serio - decouple libps2 from i8042 Date: Mon, 11 Apr 2022 15:04:39 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org As of commit 4097461897df9104 ("Input: i8042 - break load dependency between atkbd/psmouse and i8042"), the libps2 driver no longer uses any functionality from the i8042 driver. Hence the meat of commit fed94549edc90b15 ("Input: libps2 - fix dependancy on i8042") can be reverted. Remove the obsolete inclusion of from the libps2 driver. Signed-off-by: Geert Uytterhoeven --- Does this actually work? --- drivers/input/serio/Kconfig | 1 - drivers/input/serio/libps2.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/input/serio/Kconfig b/drivers/input/serio/Kconfig index f39b7b3f79421538..2d875f4d95f41116 100644 --- a/drivers/input/serio/Kconfig +++ b/drivers/input/serio/Kconfig @@ -177,7 +177,6 @@ config SERIO_SGI_IOC3 config SERIO_LIBPS2 tristate "PS/2 driver library" - depends on SERIO_I8042 || SERIO_I8042=n help Say Y here if you are using a driver for device connected to a PS/2 port, such as PS/2 mouse or standard AT keyboard. diff --git a/drivers/input/serio/libps2.c b/drivers/input/serio/libps2.c index 250e213cc80c68be..f5980eb980868dc7 100644 --- a/drivers/input/serio/libps2.c +++ b/drivers/input/serio/libps2.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #define DRIVER_DESC "PS/2 driver library"