From: Jagan Teki Date: Thu, 22 Oct 2015 19:31:36 +0000 (+0530) Subject: spi: designware_spi: Use GENMASK X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=95e77d904ea10512cdf882357352c40e54877601;p=u-boot.git spi: designware_spi: Use GENMASK Replace numeric mask hexcodes with GENMASK macro in designware_spi Cc: Stefan Roese Cc: Marek Vasut Reviewed-by: Tom Rini Signed-off-by: Jagan Teki --- diff --git a/drivers/spi/designware_spi.c b/drivers/spi/designware_spi.c index 7885e4640c..24a6e98205 100644 --- a/drivers/spi/designware_spi.c +++ b/drivers/spi/designware_spi.c @@ -74,7 +74,7 @@ DECLARE_GLOBAL_DATA_PTR; #define SPI_CFS_OFFSET 12 /* Bit fields in SR, 7 bits */ -#define SR_MASK 0x7f /* cover 7 bits */ +#define SR_MASK GENMASK(6, 0) /* cover 7 bits */ #define SR_BUSY BIT(0) #define SR_TF_NOT_FULL BIT(1) #define SR_TF_EMPT BIT(2)