Skip to contentSkip to conversation

gpio: fix GPIO submenu in Kconfig

PATCH Applied Bartosz Golaszewski 2 participants 3 messages Sep 1, 2025 – Sep 2, 2025 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: fix GPIO submenu in Kconfig

From: Bartosz Golaszewski <[email protected]>

Commit a86240a37d43 ("gpiolib: enable CONFIG_GPIOLIB_LEGACY even for !GPIOLIB") accidentally pulled all items from within the GPIOLIB submenu into the main driver menu. Put them back under the top-level GPIO entry.

Fixes a86240a37d43 ("gpiolib: enable CONFIG_GPIOLIB_LEGACY even for !GPIOLIB")
---
 drivers/gpio/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpio/Kconfig +3 -3
index a437fe652dbc6..6fd904e29c3e7 100644
@@ -3,6 +3,9 @@
 # GPIO infrastructure and drivers
 #
 
+config GPIOLIB_LEGACY
+	def_bool y
+
 menuconfig GPIOLIB
 	bool "GPIO Support"
 	help
@@ -12,9 +15,6 @@ menuconfig GPIOLIB
 
 	  If unsure, say N.
 
-config GPIOLIB_LEGACY
-	def_bool y
-
 if GPIOLIB
 
 config GPIOLIB_FASTPATH_LIMIT
Signature · 1 line
2.48.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Commit a86240a37d43 ("gpiolib: enable CONFIG_GPIOLIB_LEGACY even for !GPIOLIB") accidentally pulled all items from within the GPIOLIB submenu into the main driver menu. Put them back under the top-level GPIO entry.

Fixes a86240a37d43 ("gpiolib: enable CONFIG_GPIOLIB_LEGACY even for !GPIOLIB")

I'm sorry I misunderstood the earlier bug report and assumed this was already addressed. I now see what my mistake was and the fix looks correct to me.

Arnd

author Applied
#2 lore raw
In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Quoted 5 lines · Bartosz Golaszewski

Commit a86240a37d43 ("gpiolib: enable CONFIG_GPIOLIB_LEGACY even for !GPIOLIB") accidentally pulled all items from within the GPIOLIB submenu into the main driver menu. Put them back under the top-level GPIO entry.

Applied, thanks!

[1/1] gpio: fix GPIO submenu in Kconfig

      https://git.kernel.org/brgl/linux/c/ef9f21c3f370bcd45688a3a573b788e39b364e80

Best regards,

Signature · 1 line
Bartosz Golaszewski <[email protected]>