From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BEBCEC43458 for ; Mon, 29 Jun 2026 13:28:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zfKPa/4/egwCMfJeGz2Aw4SIOW5wOCS1peFCKM6LU6Q=; b=Ou9Of0AXwaeEPV /E6eXgJt4YKiw4JW56pcl8+UlbjojZJbJ7JQMNjxFGHq/c5fp7DYw1CdK/BrDcf8qT+Dc3F08WYv6 82KmXcFHc1iviIciZpovAp+aNkpkMuDFYrfXLy2CkZG+heC50Cec/NM8F5fAf6LmTHKCT8c/mg97g +HEquXSFPQ7XBKFBe4KTBkMaHsBOZBO8heV/HO1r5vVWNhK+1jlRKtTdyrTBW6UK2/3hYdiWPwRHL C74RubjHs/8IRgnxnbfDKwTsaaURHQngAxVv+sixS8yJtnytTvAGDlO7hICr9cRuvsbCM2ZXTBISQ EABDJG6s5SPm0YLvb10w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1weC28-0000000El3a-21v6; Mon, 29 Jun 2026 13:28:20 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1weC26-0000000El21-415a; Mon, 29 Jun 2026 13:28:19 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id A7C2C41320; Mon, 29 Jun 2026 13:28:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 089BD1F00A3A; Mon, 29 Jun 2026 13:28:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782739698; bh=iYwaK59VeErRBhP0Q9iTMSGYiDgPnUNQAe6MLCdyQLw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=h5AFqQi4jStPxyTSP1+6Qa/JvBSIFtVgK0MNZzsiH6wjFRswa/RLrnQqFNHih/qjG EWv3fVYPKDKbBtHjWpFdO8cIy9X4E9hkJpPP6vBXA8/qsQylAAtt6v+NK73U7OXv92 YB7mQNWAxRfG6dGtDgsPLk0YTrL8XMwVLZP0DiJLe31ovoUMss8UP/7D/l/j5xY8/E GWyr+Tst/J+V3i8q9C/i4YobqaQblCJhFZjTHY4YfQcFjDhwMaiBx0Ip4Lj1e9DE6L mM017Lryq9TQOfeRAPIp4At1UOUu2ZNtp0Xj6zezM1lXYTXWiO8CpisTNWLtJuCnOG JFsljvXoooevw== From: Arnd Bergmann To: linux-gpio@vger.kernel.org Cc: Arnd Bergmann , Bartosz Golaszewski , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Frank Li , Robert Jarzmik , Krzysztof Kozlowski , Greg Ungerer , Thomas Bogendoerfer , Hauke Mehrtens , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Yoshinori Sato , John Paul Adrian Glaubitz , Linus Walleij , Dmitry Torokhov , Jakub Kicinski , Paolo Abeni , Dominik Brodowski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, patches@opensource.cirrus.com, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-sh@vger.kernel.org, linux-input@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-phy@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-sound@vger.kernel.org Subject: [PATCH 13/13] gpiolib: remove linux/gpio.h Date: Mon, 29 Jun 2026 15:26:33 +0200 Message-Id: <20260629132633.1300009-14-arnd@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260629132633.1300009-1-arnd@kernel.org> References: <20260629132633.1300009-1-arnd@kernel.org> MIME-Version: 1.0 X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann After all other drivers have converted to linux/gpio/consumer.h or linux/gpio/legacy.h, remove the final leftover bits here. Signed-off-by: Arnd Bergmann --- MAINTAINERS | 1 - drivers/gpio/TODO | 4 +--- drivers/gpio/gpiolib-cdev.c | 2 +- drivers/gpio/gpiolib-legacy.c | 3 +-- drivers/gpio/gpiolib.c | 2 +- include/linux/gpio.h | 22 ---------------------- 6 files changed, 4 insertions(+), 30 deletions(-) delete mode 100644 include/linux/gpio.h diff --git a/MAINTAINERS b/MAINTAINERS index 15011f5752a9..7f3f386b1d8c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11175,7 +11175,6 @@ F: Documentation/devicetree/bindings/gpio/ F: Documentation/driver-api/gpio/ F: drivers/gpio/ F: include/dt-bindings/gpio/ -F: include/linux/gpio.h F: include/linux/gpio/ K: (devm_)?gpio_(request|free|direction|get|set) K: GPIOD_FLAGS_BIT_NONEXCLUSIVE diff --git a/drivers/gpio/TODO b/drivers/gpio/TODO index 7ce80fde1f17..894c7e1af252 100644 --- a/drivers/gpio/TODO +++ b/drivers/gpio/TODO @@ -52,9 +52,7 @@ Work items: base can be made dynamic (set to -1) if CONFIG_GPIO_SYSFS is disabled. - When this work is complete (will require some of the items in the - following ongoing work as well) we can delete the old global - numberspace accessors from and eventually delete - altogether. + following ongoing work as well) we can delete . ------------------------------------------------------------------------------- diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index 82f27db0b230..9b6a28819371 100644 --- a/drivers/gpio/gpiolib-cdev.c +++ b/drivers/gpio/gpiolib-cdev.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/gpio/gpiolib-legacy.c b/drivers/gpio/gpiolib-legacy.c index ef3f2ef30cf2..33e5a45e720b 100644 --- a/drivers/gpio/gpiolib-legacy.c +++ b/drivers/gpio/gpiolib-legacy.c @@ -7,8 +7,7 @@ #include #include - -#include +#include #include "gpiolib.h" diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index e5fb60111151..1f498d6c8c68 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -29,7 +29,7 @@ #include #include -#include +#include #include #include diff --git a/include/linux/gpio.h b/include/linux/gpio.h deleted file mode 100644 index b0d4942a65de..000000000000 --- a/include/linux/gpio.h +++ /dev/null @@ -1,22 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* - * NOTE: This header *must not* be included. - * - * If you're implementing a GPIO driver, only include - * If you're implementing a GPIO consumer, only include - * If you're using the legacy interfaces, include - */ - -#ifndef __LINUX_GPIO_H -#define __LINUX_GPIO_H - -#include -#ifdef CONFIG_GPIOLIB -#include -#endif - -#ifdef CONFIG_GPIOLIB_LEGACY -#include -#endif /* CONFIG_GPIOLIB_LEGACY */ - -#endif /* __LINUX_GPIO_H */ -- 2.39.5 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy