spi: sh-msiof: Use core message handling instead of spi-bitbang
authorGeert Uytterhoeven <geert+renesas@linux-m68k.org>
Tue, 25 Feb 2014 10:21:13 +0000 (11:21 +0100)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:21:48 +0000 (09:21 +0900)
commit0ae2f122e103be4cf1d4c63e35d1e715253bb98f
treecc1ea12f3fdb8e99c75d678d62f0275be150bc3e
parenta0ecb6b5071b8456feeb279628981109d7433e4d
spi: sh-msiof: Use core message handling instead of spi-bitbang

The only remaining feature of spi-bitbang used by this driver is the
chipselect() callback, which just does conditional GPIO.
This is handled fine by the SPI core's spi_set_cs(), hence switch the
driver to use the core message handling through our own transfer_one()
method.

As the (optional) GPIO CS is no longer deasserted at spi_master.setup()
time (through spi_bitbang_setup() and the spi_bitbang.chipselect()
callback), we now have to take care of that ourselves.

Remove the call to spi_master_put() in sh_msiof_spi_remove(), as our SPI
master is now registered using devm_spi_register_master()
(spi_bitbang_start() uses the non-managed version).

Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 1bd6363bc0c69ff6120b53daa35cf9459c3628ad)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/spi/Kconfig
drivers/spi/spi-sh-msiof.c