[U-Boot] [PATCH v3 02/25] arm: kirkwood: spi.h: Add some missing parenthesis

Stefan Roese sr at denx.de
Tue Sep 2 14:02:50 CEST 2014


Signed-off-by: Stefan Roese <sr at denx.de>
Cc: Jagannadha Sutradharudu Teki <jaganna at xilinx.com>

Tested-by: Luka Perkov <luka at openwrt.org>
---

Changes in v3:
- Added Tested-by from Luka

Changes in v2: None

 arch/arm/include/asm/arch-kirkwood/spi.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/include/asm/arch-kirkwood/spi.h b/arch/arm/include/asm/arch-kirkwood/spi.h
index b1cf614..e512dce 100644
--- a/arch/arm/include/asm/arch-kirkwood/spi.h
+++ b/arch/arm/include/asm/arch-kirkwood/spi.h
@@ -43,10 +43,10 @@ struct kwspi_registers {
 #define KWSPI_XFERLEN_2BYTE	(1 << 5)
 #define KWSPI_XFERLEN_MASK	(1 << 5)
 #define KWSPI_ADRLEN_1BYTE	0
-#define KWSPI_ADRLEN_2BYTE	1 << 8
-#define KWSPI_ADRLEN_3BYTE	2 << 8
-#define KWSPI_ADRLEN_4BYTE	3 << 8
-#define KWSPI_ADRLEN_MASK	3 << 8
+#define KWSPI_ADRLEN_2BYTE	(1 << 8)
+#define KWSPI_ADRLEN_3BYTE	(2 << 8)
+#define KWSPI_ADRLEN_4BYTE	(3 << 8)
+#define KWSPI_ADRLEN_MASK	(3 << 8)
 #define KWSPI_TIMEOUT		10000
 
 #endif /* __KW_SPI_H__ */
-- 
2.1.0



More information about the U-Boot mailing list