spi: fsl_qspi: Use GENMASK
authorJagan Teki <jteki@openedev.com>
Thu, 22 Oct 2015 19:32:04 +0000 (01:02 +0530)
committerJagan Teki <jteki@openedev.com>
Tue, 27 Oct 2015 17:51:43 +0000 (23:21 +0530)
Replace numeric mask hexcodes with GENMASK macro
in fsl_qspi

Cc: York Sun <yorksun@freescale.com>
Cc: Haikun Wang <Haikun.Wang@freescale.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
drivers/spi/fsl_qspi.c

index e1a0ec9a2ef42f07f7b1db99d7b98d7bb29f896e..10733df71dd05663d48a859e01126e1c6fb47744 100644 (file)
@@ -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