Skip to content
Snippets Groups Projects
Commit 95e77d90 authored by Jagan Teki's avatar Jagan Teki
Browse files

spi: designware_spi: Use GENMASK


Replace numeric mask hexcodes with GENMASK macro
in designware_spi

Cc: Stefan Roese <sr@denx.de>
Cc: Marek Vasut <marex@denx.de>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
Signed-off-by: default avatarJagan Teki <jteki@openedev.com>
parent a9d3b780
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment