spi: bcm2835: move to the transfer_one driver model
authorMartin Sperl <kernel@martin.sperl.org>
Thu, 26 Mar 2015 10:08:36 +0000 (11:08 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 27 Mar 2015 01:28:44 +0000 (18:28 -0700)
commite34ff011c70e5f4ef219141711142d5111ae6ebb
treec245a490e7007e28b12ec5eabde7ea4ef3d3fc78
parent1be38e041f8eaa935f370aa0f34dd7a2fe39b1d8
spi: bcm2835: move to the transfer_one driver model

This also allows for GPIO-CS to get used removing the limitation of
2/3 SPI devises on the SPI bus.

Fixes: spi-cs-high with native CS with multiple devices on the spi-bus
resetting the chip selects to "normal" polarity after a finished
transfer.

No other functionality/improvements added.

Tested with the following 4 devices on the spi-bus:
* mcp2515 with native CS
* mcp2515 with gpio CS
* fb_st7735r with native CS
    (plus spi-cs-high via transistor inverting polarity)
* enc28j60 with gpio-CS
Tested-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm2835.c