diff options
author | Jagan Teki | 2015-12-16 15:51:06 +0530 |
---|---|---|
committer | Jagan Teki | 2016-01-13 18:47:26 +0530 |
commit | e26a2e2cd96d1e885292880e1d71233a9dc04518 (patch) | |
tree | 40e2e9d574f7ffa16f25b2a793aa04ff6555dc4c | |
parent | c40f6003601eae3de5acbea7f6e8318f4a7a831b (diff) |
spi: Fix bit assignment with flags
Fixed bit assignment with flags members on spi_slave{}
Cc: Simon Glass <sjg@chromium.org>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Tested-by: Mugunthan V N <mugunthanvnm@ti.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Jagan Teki <jteki@openedev.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
-rw-r--r-- | include/spi.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/spi.h b/include/spi.h index de09ac5c53a..82e72ab38b2 100644 --- a/include/spi.h +++ b/include/spi.h @@ -118,10 +118,10 @@ struct spi_slave { u8 flags; #define SPI_XFER_BEGIN 0x01 /* Assert CS before transfer */ #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) -#define SPI_XFER_U_PAGE (1 << 5) +#define SPI_XFER_MMAP 0x04 /* Memory Mapped start */ +#define SPI_XFER_MMAP_END 0x08 /* Memory Mapped End */ +#define SPI_XFER_U_PAGE 0x10 }; /** |