From e26a2e2cd96d1e885292880e1d71233a9dc04518 Mon Sep 17 00:00:00 2001 From: Jagan Teki Date: Wed, 16 Dec 2015 15:51:06 +0530 Subject: [PATCH] spi: Fix bit assignment with flags Fixed bit assignment with flags members on spi_slave{} Cc: Simon Glass Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Tested-by: Mugunthan V N Tested-by: Bin Meng Tested-by: Jagan Teki Reviewed-by: Bin Meng Signed-off-by: Jagan Teki --- include/spi.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/spi.h b/include/spi.h index de09ac5c53..82e72ab38b 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 }; /** -- 2.25.1