summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJagan Teki <jteki@openedev.com>2015-10-23 01:02:04 +0530
committerJagan Teki <jteki@openedev.com>2015-10-27 23:21:43 +0530
commitbad490a24212c068c5b718b9189f47ea4075d078 (patch)
treee35c32dc040e3438ee288fea39ecb4ced5d56bef /drivers
parent95e77d904ea10512cdf882357352c40e54877601 (diff)
downloadu-boot-imx-bad490a24212c068c5b718b9189f47ea4075d078.zip
u-boot-imx-bad490a24212c068c5b718b9189f47ea4075d078.tar.gz
u-boot-imx-bad490a24212c068c5b718b9189f47ea4075d078.tar.bz2
spi: fsl_qspi: Use GENMASK
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/fsl_qspi.c2
1 files changed, 1 insertions, 1 deletions
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