From: Jagan Teki Date: Thu, 22 Oct 2015 19:29:00 +0000 (+0530) Subject: spi: atmel_spi: Use GENMASK X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=a9d3b780232907206c7930edae8a0a7cc8fd7e24;p=u-boot.git spi: atmel_spi: Use GENMASK Replace numeric mask hexcodes with GENMASK macro in atmel_spi Cc: Bo Shen Reviewed-by: Tom Rini Signed-off-by: Jagan Teki --- diff --git a/drivers/spi/atmel_spi.h b/drivers/spi/atmel_spi.h index 5b892d23b1..76b8556c98 100644 --- a/drivers/spi/atmel_spi.h +++ b/drivers/spi/atmel_spi.h @@ -59,7 +59,7 @@ #define ATMEL_SPI_CSRx_CSAAT BIT(3) #define ATMEL_SPI_CSRx_BITS(x) ((x) << 4) #define ATMEL_SPI_CSRx_SCBR(x) ((x) << 8) -#define ATMEL_SPI_CSRx_SCBR_MAX 0xff +#define ATMEL_SPI_CSRx_SCBR_MAX GENMASK(7, 0) #define ATMEL_SPI_CSRx_DLYBS(x) ((x) << 16) #define ATMEL_SPI_CSRx_DLYBCT(x) ((x) << 24)