Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

gpio: drop unneeded Kconfig dependencies on OF_GPIO

OF_GPIO is selected automatically on all OF systems. Any symbols it
controls also provide stubs so there's really no reason to select it
explicitly. Remove all Kconfig dependencies/selects for GPIO drivers.
For those that have no other dependencies: convert it to requiring
CONFIG_OF instead to avoid new symbols popping up in make config.

Link: https://patch.msgid.link/20260316-gpio-of-kconfig-v2-3-de2f4b00a0e4@oss.qualcomm.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

+17 -36
+17 -36
drivers/gpio/Kconfig
··· 142 142 143 143 config GPIO_74XX_MMIO 144 144 tristate "GPIO driver for 74xx-ICs with MMIO access" 145 - depends on OF_GPIO 145 + depends on OF 146 146 select GPIO_GENERIC 147 147 help 148 148 Say yes here to support GPIO functionality for 74xx-compatible ICs ··· 172 172 173 173 config GPIO_ASPEED 174 174 tristate "Aspeed GPIO support" 175 - depends on (ARCH_ASPEED || COMPILE_TEST) && OF_GPIO 175 + depends on ARCH_ASPEED || COMPILE_TEST 176 176 select GPIOLIB_IRQCHIP 177 177 help 178 178 Say Y here to support Aspeed AST2400 and AST2500 GPIO controllers. 179 179 180 180 config GPIO_ASPEED_SGPIO 181 181 bool "Aspeed SGPIO support" 182 - depends on (ARCH_ASPEED || COMPILE_TEST) && OF_GPIO 182 + depends on ARCH_ASPEED || COMPILE_TEST 183 183 select GPIO_GENERIC 184 184 select GPIOLIB_IRQCHIP 185 185 help ··· 198 198 config GPIO_RASPBERRYPI_EXP 199 199 tristate "Raspberry Pi 3 GPIO Expander" 200 200 default RASPBERRYPI_FIRMWARE 201 - depends on OF_GPIO 202 201 # Make sure not 'y' when RASPBERRYPI_FIRMWARE is 'm'. This can only 203 202 # happen when COMPILE_TEST=y, hence the added !RASPBERRYPI_FIRMWARE. 204 203 depends on (ARCH_BCM2835 && RASPBERRYPI_FIRMWARE) || (COMPILE_TEST && !RASPBERRYPI_FIRMWARE) ··· 214 215 215 216 config GPIO_BCM_XGS_IPROC 216 217 tristate "BRCM XGS iProc GPIO support" 217 - depends on OF_GPIO && (ARCH_BCM_IPROC || COMPILE_TEST) 218 + depends on ARCH_BCM_IPROC || COMPILE_TEST 218 219 select GPIO_GENERIC 219 220 select GPIOLIB_IRQCHIP 220 221 default ARCH_BCM_IPROC ··· 225 226 tristate "Blaize BLZP1600 GPIO support" 226 227 default y if ARCH_BLAIZE 227 228 depends on ARCH_BLAIZE || COMPILE_TEST 228 - depends on OF_GPIO 229 229 select GPIO_GENERIC 230 230 select GPIOLIB_IRQCHIP 231 231 help ··· 235 237 config GPIO_BRCMSTB 236 238 tristate "BRCMSTB GPIO support" 237 239 default y if (ARCH_BRCMSTB || BMIPS_GENERIC) 238 - depends on OF_GPIO && (ARCH_BRCMSTB || ARCH_BCM2835 || BMIPS_GENERIC || COMPILE_TEST) 240 + depends on ARCH_BRCMSTB || ARCH_BCM2835 || BMIPS_GENERIC || COMPILE_TEST 239 241 select GPIO_GENERIC 240 242 select IRQ_DOMAIN 241 243 help ··· 243 245 244 246 config GPIO_CADENCE 245 247 tristate "Cadence GPIO support" 246 - depends on OF_GPIO 248 + depends on OF 247 249 select GPIO_GENERIC 248 250 select GPIOLIB_IRQCHIP 249 251 help ··· 275 277 config GPIO_EIC_SPRD 276 278 tristate "Spreadtrum EIC support" 277 279 depends on ARCH_SPRD || COMPILE_TEST 278 - depends on OF_GPIO 279 280 select GPIOLIB_IRQCHIP 280 281 help 281 282 Say yes here to support Spreadtrum EIC device. 282 283 283 284 config GPIO_EM 284 285 tristate "Emma Mobile GPIO" 285 - depends on (ARCH_EMEV2 || COMPILE_TEST) && OF_GPIO 286 + depends on ARCH_EMEV2 || COMPILE_TEST 286 287 help 287 288 Say yes here to support GPIO on Renesas Emma Mobile SoCs. 288 289 ··· 323 326 324 327 config GPIO_FTGPIO010 325 328 bool "Faraday FTGPIO010 GPIO" 326 - depends on OF_GPIO 329 + depends on OF 327 330 select GPIO_GENERIC 328 331 select GPIOLIB_IRQCHIP 329 332 default (ARCH_GEMINI || ARCH_MOXART) ··· 377 380 378 381 config GPIO_HLWD 379 382 tristate "Nintendo Wii (Hollywood) GPIO" 380 - depends on OF_GPIO 383 + depends on OF 381 384 select GPIO_GENERIC 382 385 select GPIOLIB_IRQCHIP 383 386 help ··· 428 431 config GPIO_LOONGSON_64BIT 429 432 tristate "Loongson 64 bit GPIO support" 430 433 depends on LOONGARCH || COMPILE_TEST 431 - depends on OF_GPIO 432 434 select GPIO_GENERIC 433 435 select GPIOLIB_IRQCHIP 434 436 help ··· 440 444 config GPIO_LPC18XX 441 445 tristate "NXP LPC18XX/43XX GPIO support" 442 446 default y if ARCH_LPC18XX 443 - depends on OF_GPIO && (ARCH_LPC18XX || COMPILE_TEST) 447 + depends on ARCH_LPC18XX || COMPILE_TEST 444 448 select IRQ_DOMAIN_HIERARCHY 445 449 select GPIOLIB_IRQCHIP 446 450 help ··· 449 453 450 454 config GPIO_LPC32XX 451 455 tristate "NXP LPC32XX GPIO support" 452 - depends on OF_GPIO && (ARCH_LPC32XX || COMPILE_TEST) 456 + depends on ARCH_LPC32XX || COMPILE_TEST 453 457 help 454 458 Select this option to enable GPIO driver for 455 459 NXP LPC32XX devices. ··· 492 496 config GPIO_MT7621 493 497 bool "Mediatek MT7621 GPIO Support" 494 498 depends on SOC_MT7620 || SOC_MT7621 || COMPILE_TEST 495 - depends on OF_GPIO 496 499 select GPIO_GENERIC 497 500 select GPIOLIB_IRQCHIP 498 501 help ··· 584 589 config GPIO_RDA 585 590 bool "RDA Micro GPIO controller support" 586 591 depends on ARCH_RDA || COMPILE_TEST 587 - depends on OF_GPIO 588 592 select GPIO_GENERIC 589 593 select GPIOLIB_IRQCHIP 590 594 help ··· 633 639 config GPIO_SAMA5D2_PIOBU 634 640 tristate "SAMA5D2 PIOBU GPIO support" 635 641 depends on MFD_SYSCON 636 - depends on OF_GPIO 637 642 depends on ARCH_AT91 || COMPILE_TEST 638 643 select GPIO_SYSCON 639 644 help ··· 644 651 645 652 config GPIO_SIFIVE 646 653 tristate "SiFive GPIO support" 647 - depends on OF_GPIO 654 + depends on OF 648 655 select IRQ_DOMAIN_HIERARCHY 649 656 select GPIO_GENERIC 650 657 select GPIOLIB_IRQCHIP ··· 663 670 config GPIO_SNPS_CREG 664 671 bool "Synopsys GPIO via CREG (Control REGisters) driver" 665 672 depends on ARC || COMPILE_TEST 666 - depends on OF_GPIO 667 673 help 668 674 This driver supports GPIOs via CREG on various Synopsys SoCs. 669 675 This is a single-register MMIO GPIO driver for complex cases ··· 672 680 config GPIO_SPACEMIT_K1 673 681 tristate "SPACEMIT K1 GPIO support" 674 682 depends on ARCH_SPACEMIT || COMPILE_TEST 675 - depends on OF_GPIO 676 683 select GPIO_GENERIC 677 684 select GPIOLIB_IRQCHIP 678 685 help ··· 687 696 config GPIO_SPRD 688 697 tristate "Spreadtrum GPIO support" 689 698 depends on ARCH_SPRD || COMPILE_TEST 690 - depends on OF_GPIO 691 699 select GPIOLIB_IRQCHIP 692 700 help 693 701 Say yes here to support Spreadtrum GPIO device. ··· 694 704 config GPIO_STP_XWAY 695 705 bool "XWAY STP GPIOs" 696 706 depends on SOC_XWAY || COMPILE_TEST 697 - depends on OF_GPIO 698 707 help 699 708 This enables support for the Serial To Parallel (STP) unit found on 700 709 XWAY SoC. The STP allows the SoC to drive a shift registers cascade, ··· 728 739 tristate "NVIDIA Tegra GPIO support" 729 740 default ARCH_TEGRA 730 741 depends on ARCH_TEGRA || COMPILE_TEST 731 - depends on OF_GPIO 732 742 select GPIOLIB_IRQCHIP 733 743 select IRQ_DOMAIN_HIERARCHY 734 744 help ··· 737 749 tristate "NVIDIA Tegra186 GPIO support" 738 750 default ARCH_TEGRA_186_SOC || ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC 739 751 depends on ARCH_TEGRA_186_SOC || ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC || COMPILE_TEST 740 - depends on OF_GPIO 741 752 select GPIOLIB_IRQCHIP 742 753 select IRQ_DOMAIN_HIERARCHY 743 754 help ··· 744 757 745 758 config GPIO_TS4800 746 759 tristate "TS-4800 DIO blocks and compatibles" 747 - depends on OF_GPIO 748 760 depends on SOC_IMX51 || COMPILE_TEST 749 761 select GPIO_GENERIC 750 762 help ··· 763 777 config GPIO_UNIPHIER 764 778 tristate "UniPhier GPIO support" 765 779 depends on ARCH_UNIPHIER || COMPILE_TEST 766 - depends on OF_GPIO 767 780 select IRQ_DOMAIN_HIERARCHY 768 781 help 769 782 Say yes here to support UniPhier GPIOs. ··· 779 794 config GPIO_VISCONTI 780 795 tristate "Toshiba Visconti GPIO support" 781 796 depends on ARCH_VISCONTI || COMPILE_TEST 782 - depends on OF_GPIO 783 797 select GPIOLIB_IRQCHIP 784 798 select GPIO_GENERIC 785 799 select IRQ_DOMAIN_HIERARCHY ··· 787 803 788 804 config GPIO_WCD934X 789 805 tristate "Qualcomm Technologies Inc WCD9340/WCD9341 GPIO controller driver" 790 - depends on MFD_WCD934X && OF_GPIO 806 + depends on MFD_WCD934X 791 807 help 792 808 This driver is to support GPIO block found on the Qualcomm Technologies 793 809 Inc WCD9340/WCD9341 Audio Codec. 794 810 795 811 config GPIO_XGENE 796 812 bool "APM X-Gene GPIO controller support" 797 - depends on ARM64 && OF_GPIO 813 + depends on ARM64 798 814 help 799 815 This driver is to support the GPIO block within the APM X-Gene SoC 800 816 platform's generic flash controller. The GPIO pins are muxed with ··· 1092 1108 1093 1109 config GPIO_ADNP 1094 1110 tristate "Avionic Design N-bit GPIO expander" 1095 - depends on OF_GPIO 1111 + depends on OF 1096 1112 select GPIOLIB_IRQCHIP 1097 1113 help 1098 1114 This option enables support for N GPIOs found on Avionic Design ··· 1125 1141 1126 1142 config GPIO_GW_PLD 1127 1143 tristate "Gateworks PLD GPIO Expander" 1128 - depends on OF_GPIO 1144 + depends on OF 1129 1145 help 1130 1146 Say yes here to provide access to the Gateworks I2C PLD GPIO 1131 1147 Expander. This is used at least on the Cambria GW2358-4. ··· 1549 1565 config GPIO_PMIC_EIC_SPRD 1550 1566 tristate "Spreadtrum PMIC EIC support" 1551 1567 depends on MFD_SC27XX_PMIC || COMPILE_TEST 1552 - depends on OF_GPIO 1553 1568 select GPIOLIB_IRQCHIP 1554 1569 help 1555 1570 Say yes here to support Spreadtrum PMIC EIC device. ··· 1587 1604 config GPIO_STMPE 1588 1605 tristate "STMPE GPIOs" 1589 1606 depends on MFD_STMPE 1590 - depends on OF_GPIO 1591 1607 select GPIOLIB_IRQCHIP 1592 1608 help 1593 1609 This enables support for the GPIOs found on the STMPE I/O ··· 1595 1613 config GPIO_TC3589X 1596 1614 bool "TC3589X GPIOs" 1597 1615 depends on MFD_TC3589X 1598 - depends on OF_GPIO 1599 1616 select GPIOLIB_IRQCHIP 1600 1617 help 1601 1618 This enables support for the GPIOs found on the TC3589X ··· 1984 2003 1985 2004 config GPIO_LINE_MUX 1986 2005 tristate "GPIO line mux driver" 1987 - depends on OF_GPIO 2006 + depends on OF 1988 2007 select MULTIPLEXER 1989 2008 help 1990 2009 Say Y here to support the GPIO line mux, which can provide virtual