From: Jagan Teki Date: Thu, 22 Oct 2015 19:32:04 +0000 (+0530) Subject: spi: fsl_qspi: Use GENMASK X-Git-Tag: v2025.01-rc5-pxa1908~11364^2~5 X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/%7B%7B%20%24image.RelPermalink%20%7D%7D?a=commitdiff_plain;h=bad490a24212c068c5b718b9189f47ea4075d078;p=u-boot.git spi: fsl_qspi: Use GENMASK Replace numeric mask hexcodes with GENMASK macro in fsl_qspi Cc: York Sun Cc: Haikun Wang Signed-off-by: Jagan Teki --- diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index e1a0ec9a2e..10733df71d 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