From: Yann Sionneau Date: Fri, 15 May 2015 09:02:16 +0000 (+0200) Subject: spiflash: cleanup unnecessary parenthesis X-Git-Tag: 24jan2021_ls180~2240 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f7e16186701c056d6a1129b52d42246be9d6c13;p=litex.git spiflash: cleanup unnecessary parenthesis --- diff --git a/software/libbase/spiflash.c b/software/libbase/spiflash.c index 3d4e3204..da8fd756 100644 --- a/software/libbase/spiflash.c +++ b/software/libbase/spiflash.c @@ -4,17 +4,17 @@ #include -#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);