diff options
| author | Jagan Teki <[email protected]> | 2015-10-23 01:01:36 +0530 |
|---|---|---|
| committer | Jagan Teki <[email protected]> | 2015-10-27 23:21:43 +0530 |
| commit | 95e77d904ea10512cdf882357352c40e54877601 (patch) | |
| tree | 7ede4ea0b3ec659390143580be0712724b0ac8a4 /drivers | |
| parent | a9d3b780232907206c7930edae8a0a7cc8fd7e24 (diff) | |
spi: designware_spi: Use GENMASK
Replace numeric mask hexcodes with GENMASK macro
in designware_spi
Cc: Stefan Roese <[email protected]>
Cc: Marek Vasut <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Signed-off-by: Jagan Teki <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/spi/designware_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/designware_spi.c b/drivers/spi/designware_spi.c index 7885e4640cf..24a6e982054 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) |
