summaryrefslogtreecommitdiffstats
path: root/drivers/spi/Kconfig
diff options
context:
space:
mode:
authorAlban Bedel <albeu@free.fr>2019-01-16 19:55:45 +0100
committerMark Brown <broonie@kernel.org>2019-01-17 13:34:39 +0100
commit797622d7a3ab5192ff575288bdbec15c3a006280 (patch)
tree67b7c9872993e2ebc73adaa6dfa46ae5cfce9b87 /drivers/spi/Kconfig
parentspi: bitbang: Don't call chipselect() in spi_bitbang_setup() (diff)
downloadlinux-797622d7a3ab5192ff575288bdbec15c3a006280.tar.xz
linux-797622d7a3ab5192ff575288bdbec15c3a006280.zip
spi: ath79: Simplify ath79_spi_chipselect()
First of all this callback was slightly misused to setup the clock polarity at the beginning of a transfer. Beside being at the wrong place, it is also useless as only SPI mode 1 is supported. Instead just make sure the base value used for IOC is suitable to start a transfer by clearing the clock and data bits during the controller setup. This also remove the last direct usage of the GPIO API, so we can remove the direct dependency on GPIOLIB. Signed-off-by: Alban Bedel <albeu@free.fr> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/Kconfig')
-rw-r--r--drivers/spi/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index dc67eda1788a..128892c7e21e 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -63,7 +63,7 @@ config SPI_ALTERA
config SPI_ATH79
tristate "Atheros AR71XX/AR724X/AR913X SPI controller driver"
- depends on ATH79 && GPIOLIB
+ depends on ATH79
select SPI_BITBANG
help
This enables support for the SPI controller present on the