summaryrefslogtreecommitdiff
path: root/drivers/spi/tegra20_slink.c
diff options
context:
space:
mode:
authorJagan Teki <jteki@openedev.com>2015-10-23 01:03:10 +0530
committerJagan Teki <jteki@openedev.com>2015-10-27 23:21:43 +0530
commit76538ec64804155c5361aeac9d38291feef01c50 (patch)
tree4e681797c66871a537288e52edd28c8cae062722 /drivers/spi/tegra20_slink.c
parent0ebc0ec6200907588881b3c7347af74dbcf9cb65 (diff)
spi: tegra: Use GENMASK
Replace numeric mask hexcodes with GENMASK macro in tegra*.c Cc: Stephen Warren <swarren@wwwdotorg.org> Cc: Tom Warren <twarren@nvidia.com> Signed-off-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'drivers/spi/tegra20_slink.c')
-rw-r--r--drivers/spi/tegra20_slink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/tegra20_slink.c b/drivers/spi/tegra20_slink.c
index d1abac20a1..43054f1a64 100644
--- a/drivers/spi/tegra20_slink.c
+++ b/drivers/spi/tegra20_slink.c
@@ -46,13 +46,13 @@ DECLARE_GLOBAL_DATA_PTR;
#define SLINK_CMD_CS_VAL BIT(12)
#define SLINK_CMD_CS_SOFT BIT(11)
#define SLINK_CMD_BIT_LENGTH BIT(4)
-#define SLINK_CMD_BIT_LENGTH_MASK 0x0000001F
+#define SLINK_CMD_BIT_LENGTH_MASK GENMASK(4, 0)
/* COMMAND2 */
#define SLINK_CMD2_TXEN BIT(30)
#define SLINK_CMD2_RXEN BIT(31)
#define SLINK_CMD2_SS_EN BIT(18)
#define SLINK_CMD2_SS_EN_SHIFT 18
-#define SLINK_CMD2_SS_EN_MASK 0x000C0000
+#define SLINK_CMD2_SS_EN_MASK GENMASK(19, 18)
#define SLINK_CMD2_CS_ACTIVE_BETWEEN BIT(17)
/* STATUS */
#define SLINK_STAT_BSY BIT(31)