spi: Allow compile test of GPIO consumers if !GPIOLIB
The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer functionality only, can still be compiled if GPIOLIB is not enabled. Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Родитель
b787f68c36
Коммит
5c2301a990
|
@ -220,7 +220,7 @@ config SPI_FALCON
|
|||
|
||||
config SPI_GPIO
|
||||
tristate "GPIO-based bitbanging SPI Master"
|
||||
depends on GPIOLIB
|
||||
depends on GPIOLIB || COMPILE_TEST
|
||||
select SPI_BITBANG
|
||||
help
|
||||
This simple GPIO bitbanging SPI master uses the arch-neutral GPIO
|
||||
|
@ -326,7 +326,7 @@ config SPI_MESON_SPIFC
|
|||
|
||||
config SPI_OC_TINY
|
||||
tristate "OpenCores tiny SPI"
|
||||
depends on GPIOLIB
|
||||
depends on GPIOLIB || COMPILE_TEST
|
||||
select SPI_BITBANG
|
||||
help
|
||||
This is the driver for OpenCores tiny SPI master controller.
|
||||
|
|
Загрузка…
Ссылка в новой задаче