]> 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)
commitb83af1ec233a03bf588ceac6ad531e645b482209
tree67b7c9872993e2ebc73adaa6dfa46ae5cfce9b87
parent90a889d6ed5a8c6e8e06687844d0d14eb9004941
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