From: Nikita Kiryanov Date: Wed, 16 Oct 2013 14:23:26 +0000 (+0300) Subject: spi: define SPI_XFER_ONCE X-Git-Tag: v2014.01-rc1~68 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4700219dce2b6b5163207fbbd9b57a2e1b03582d;p=karo-tx-uboot.git 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 Cc: Jagannadha Sutradharudu Teki Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- diff --git a/include/spi.h b/include/spi.h index 67da75cb59..e2563c99f2 100644 --- a/include/spi.h +++ b/include/spi.h @@ -29,6 +29,7 @@ #define SPI_XFER_END 0x02 /* Deassert CS after transfer */ #define SPI_XFER_MMAP 0x08 /* Memory Mapped start */ #define SPI_XFER_MMAP_END 0x10 /* Memory Mapped End */ +#define SPI_XFER_ONCE (SPI_XFER_BEGIN | SPI_XFER_END) /* Header byte that marks the start of the message */ #define SPI_PREAMBLE_END_BYTE 0xec