staging: gpib: add bus specific Kconfig dependencies

A number of GPIB drivers fail to build when CONFIG_HAS_IOPORT is disabled,
which can be avoided with a CONFIG_ISA_BUS or CONFIG_PCMCIA dependency.

For completeness, mark all of the new device drivers with a dependency
on whichever bus they use, and hide the symbols for chip drivers that
are already selected by teh device drivers using them.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20241016111521.1143191-6-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Arnd Bergmann
2024-10-16 11:15:19 +00:00
committed by Greg Kroah-Hartman
parent 78ecb03756
commit 2c9f5d8c6e

View File

@@ -34,6 +34,7 @@ config GPIB_COMMON
config GPIB_AGILENT_82350B config GPIB_AGILENT_82350B
tristate "Agilent 8235xx PCI(e) adapters" tristate "Agilent 8235xx PCI(e) adapters"
depends on PCI
select GPIB_COMMON select GPIB_COMMON
select GPIB_TMS9914 select GPIB_TMS9914
help help
@@ -57,6 +58,8 @@ config GPIB_AGILENT_82357A
config GPIB_CEC_PCI config GPIB_CEC_PCI
tristate "CEC PCI board" tristate "CEC PCI board"
depends on PCI
depends on HAS_IOPORT
select GPIB_COMMON select GPIB_COMMON
select GPIB_NEC7210 select GPIB_NEC7210
help help
@@ -68,6 +71,7 @@ config GPIB_CEC_PCI
config GPIB_NI_PCI_ISA config GPIB_NI_PCI_ISA
tristate "NI PCI/ISA compatible boards" tristate "NI PCI/ISA compatible boards"
depends on ISA_BUS
select GPIB_COMMON select GPIB_COMMON
select GPIB_NEC7210 select GPIB_NEC7210
help help
@@ -89,6 +93,8 @@ config GPIB_NI_PCI_ISA
config GPIB_CB7210 config GPIB_CB7210
tristate "Measurement Computing compatible boards" tristate "Measurement Computing compatible boards"
depends on HAS_IOPORT
depends on ISA_BUS || PCI || PCMCIA
select GPIB_COMMON select GPIB_COMMON
help help
Enable support for Measurement Computing (Computer Boards): Enable support for Measurement Computing (Computer Boards):
@@ -118,6 +124,7 @@ config GPIB_NI_USB
config GPIB_FLUKE config GPIB_FLUKE
tristate "Fluke" tristate "Fluke"
depends on OF
select GPIB_COMMON select GPIB_COMMON
select GPIB_NEC7210 select GPIB_NEC7210
help help
@@ -140,6 +147,7 @@ config GPIB_FMH
config GPIB_GPIO config GPIB_GPIO
tristate "RPi GPIO bitbang" tristate "RPi GPIO bitbang"
depends on ARCH_BCM2835 || COMPIlE_TEST
select GPIB_COMMON select GPIB_COMMON
help help
GPIB bitbang driver Raspberry Pi GPIO adapters GPIB bitbang driver Raspberry Pi GPIO adapters
@@ -149,6 +157,7 @@ config GPIB_GPIO
config GPIB_HP82335 config GPIB_HP82335
tristate "HP82335/HP27209" tristate "HP82335/HP27209"
depends on ISA_BUS
select GPIB_COMMON select GPIB_COMMON
select GPIB_TMS9914 select GPIB_TMS9914
help help
@@ -172,6 +181,8 @@ config GPIB_HP82341
config GPIB_INES config GPIB_INES
tristate "INES" tristate "INES"
depends on PCI || ISA_BUS || PCMCIA
depends on HAS_IOPORT
select GPIB_COMMON select GPIB_COMMON
select GPIB_NEC7210 select GPIB_NEC7210
help help
@@ -210,6 +221,8 @@ config GPIB_LPVO
config GPIB_PC2 config GPIB_PC2
tristate "PC2 PC2a" tristate "PC2 PC2a"
depends on ISA_BUS
depends on HAS_IOPORT
select GPIB_COMMON select GPIB_COMMON
select GPIB_NEC7210 select GPIB_NEC7210
help help
@@ -227,7 +240,7 @@ config GPIB_PC2
config GPIB_TMS9914 config GPIB_TMS9914
tristate "TMS 9914 GPIB Chip driver" tristate
select GPIB_COMMON select GPIB_COMMON
help help
Enable support for TMS 9914 chip. Enable support for TMS 9914 chip.
@@ -236,7 +249,7 @@ config GPIB_TMS9914
called tms9914 called tms9914
config GPIB_NEC7210 config GPIB_NEC7210
tristate "NEC 7210 GPIB Chip driver" tristate
select GPIB_COMMON select GPIB_COMMON
help help
Enable support for NEC 7210 compatible chips. Enable support for NEC 7210 compatible chips.