summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-clps711x.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2019-01-07 16:51:53 +0100
committerMark Brown <broonie@kernel.org>2019-01-09 13:41:45 +0100
commitcfeefa79dc37d378216e2ced1600e297dd04e591 (patch)
treefe0e541905e9ee3e081d6c90d5a2e19c3ce3766c /drivers/spi/spi-clps711x.c
parentspi: atmel: Convert to use CS GPIO descriptors (diff)
downloadlinux-cfeefa79dc37d378216e2ced1600e297dd04e591.tar.xz
linux-cfeefa79dc37d378216e2ced1600e297dd04e591.zip
spi: cadence: Convert to use CS GPIO descriptors
This converts the Cadence SPI master driver to use GPIO descriptors for chip select handling. The Cadence driver was allocating a state container just to hold the requested GPIO line and contained lots of polarity inversion code. As this is all handled by gpiolib and a simple devm_* request in the core, and as the driver is fully device tree only, most of this code chunk goes away in favour of central handling. The setup/cleanup callbacks goes away. This driver does NOT drive the CS line by setting the value of the GPIO so it relies on the SPI core to do this, which should work just fine with the descriptors. Cc: Wei Yongjun <weiyongjun1@huawei.com> Cc: Janek Kotas <jank@cadence.com> Cc: Linuxarm <linuxarm@huawei.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-clps711x.c')
0 files changed, 0 insertions, 0 deletions