spiflash: cleanup unnecessary parenthesis
authorYann Sionneau <ys@m-labs.hk>
Fri, 15 May 2015 09:02:16 +0000 (11:02 +0200)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Wed, 27 May 2015 10:44:14 +0000 (18:44 +0800)
software/libbase/spiflash.c

index 3d4e3204aa543b478a875fe5ecfdcb7f58b63a83..da8fd756616b9fc1ad098e14b03b199159ccda72 100644 (file)
@@ -4,17 +4,17 @@
 
 #include <spiflash.h>
 
-#define PAGE_PROGRAM_CMD (0x02)
-#define WRDI_CMD         (0x04)
-#define RDSR_CMD         (0x05)
-#define WREN_CMD         (0x06)
-#define SE_CMD           (0x20)
+#define PAGE_PROGRAM_CMD 0x02
+#define WRDI_CMD         0x04
+#define RDSR_CMD         0x05
+#define WREN_CMD         0x06
+#define SE_CMD           0x20
 
 #define BITBANG_CLK         (1 << 1)
 #define BITBANG_CS_N        (1 << 2)
 #define BITBANG_DQ_INPUT    (1 << 3)
 
-#define SR_WIP              (1)
+#define SR_WIP              1
 
 static void flash_write_byte(unsigned char b);
 static void flash_write_addr(unsigned int addr);