projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9d3b78
)
spi: designware_spi: Use GENMASK
author
Jagan Teki
<jteki@openedev.com>
Thu, 22 Oct 2015 19:31:36 +0000
(
01:01
+0530)
committer
Jagan Teki
<jteki@openedev.com>
Tue, 27 Oct 2015 17:51:43 +0000
(23:21 +0530)
Replace numeric mask hexcodes with GENMASK macro
in designware_spi
Cc: Stefan Roese <sr@denx.de>
Cc: Marek Vasut <marex@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
drivers/spi/designware_spi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/designware_spi.c
b/drivers/spi/designware_spi.c
index 7885e4640cf184b191e21820d18cedcf20b0abdc..24a6e982054c5ce67893c81b85a1f74397b8ff56 100644
(file)
--- 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)