[U-Boot] [PATCH v4 20/24] spi: fsl_qspi: Use GENMASK

Jagan Teki jteki at openedev.com
Thu Oct 22 22:50:20 CEST 2015


Replace numeric mask hexcodes with GENMASK macro in fsl_qspi

Cc: York Sun <yorksun at freescale.com>
Cc: Haikun Wang <Haikun.Wang at freescale.com>
Signed-off-by: Jagan Teki <jteki at openedev.com>
---
 drivers/spi/fsl_qspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c
index e1a0ec9..10733df 100644
--- a/drivers/spi/fsl_qspi.c
+++ b/drivers/spi/fsl_qspi.c
@@ -24,7 +24,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #define TX_BUFFER_SIZE		0x40
 #endif
 
-#define OFFSET_BITS_MASK	0x00ffffff
+#define OFFSET_BITS_MASK	GENMASK(24, 0)
 
 #define FLASH_STATUS_WEL	0x02
 
-- 
1.9.1



More information about the U-Boot mailing list