spi: core: Use spi_sync_transfer() in spi_write()/spi_read()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 13 Sep 2016 13:38:25 +0000 (15:38 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 16 Sep 2016 11:05:55 +0000 (12:05 +0100)
commit323117ab60156d5ef021eeef260c4e7e0a7f520e
treeceb29b612853f3554b81f4d0840825c1e76e811e
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
spi: core: Use spi_sync_transfer() in spi_write()/spi_read()

Simplify spi_write() and spi_read() using the spi_sync_transfer()
helper.

This requires moving spi_sync_transfer() up.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/spi/spi.h