]> git.baikalelectronics.ru Git - kernel.git/commit
spi: ath79: Simplify ath79_spi_chipselect()
authorAlban Bedel <albeu@free.fr>
Wed, 16 Jan 2019 18:55:45 +0000 (19:55 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 17 Jan 2019 12:34:39 +0000 (12:34 +0000)
commit6d077db68718233f72588c9223e1f648ea7c3a2f
tree67b7c9872993e2ebc73adaa6dfa46ae5cfce9b87
parent713f261a10d4a70ec99044d62ee33e223e5e3b3c
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>
drivers/spi/Kconfig
drivers/spi/spi-ath79.c