]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spi: atmel_spi: Use GENMASK
authorJagan Teki <jteki@openedev.com>
Thu, 22 Oct 2015 19:29:00 +0000 (00:59 +0530)
committerJagan Teki <jteki@openedev.com>
Tue, 27 Oct 2015 17:51:42 +0000 (23:21 +0530)
Replace numeric mask hexcodes with GENMASK macro
in atmel_spi

Cc: Bo Shen <voice.shen@atmel.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
drivers/spi/atmel_spi.h

index 5b892d23b105162542e7125a3fe056b6632312c4..76b8556c98aeea16bdc0c5ddf26303b859c4b41a 100644 (file)
@@ -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)