]> git.sur5r.net Git - u-boot/commit
spi: define SPI_XFER_ONCE
authorNikita Kiryanov <nikita@compulab.co.il>
Wed, 16 Oct 2013 14:23:26 +0000 (17:23 +0300)
committerAnatolij Gustschin <agust@denx.de>
Tue, 12 Nov 2013 09:03:45 +0000 (10:03 +0100)
commit4700219dce2b6b5163207fbbd9b57a2e1b03582d
treee9147b391895633d5b928579ebb96e1d069aaed9
parent5753d09b1064a669e3be8f27e0f1fd008b96934a
spi: define SPI_XFER_ONCE

The flag combination "SPI_XFER_BEGIN | SPI_XFER_END" is a common use
case of spi_xfer, and it can easily cause an already long line (spi_xfer
takes 5 parameters) to go over the 80 character limit.

define SPI_XFER_ONCE to be a shorter version of the above flag combination.

Cc: Tom Rini <trini@ti.com>
Cc: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
include/spi.h