diff options
author | Jagan Teki <jteki@openedev.com> | 2015-10-23 01:03:10 +0530 |
---|---|---|
committer | Jagan Teki <jteki@openedev.com> | 2015-10-27 23:21:43 +0530 |
commit | 76538ec64804155c5361aeac9d38291feef01c50 (patch) | |
tree | 4e681797c66871a537288e52edd28c8cae062722 /drivers/spi/tegra20_sflash.c | |
parent | 0ebc0ec6200907588881b3c7347af74dbcf9cb65 (diff) | |
download | u-boot-76538ec64804155c5361aeac9d38291feef01c50.zip u-boot-76538ec64804155c5361aeac9d38291feef01c50.tar.gz u-boot-76538ec64804155c5361aeac9d38291feef01c50.tar.bz2 |
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_sflash.c')
-rw-r--r-- | drivers/spi/tegra20_sflash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/tegra20_sflash.c b/drivers/spi/tegra20_sflash.c index 5dc196b..6888a96 100644 --- a/drivers/spi/tegra20_sflash.c +++ b/drivers/spi/tegra20_sflash.c @@ -37,7 +37,7 @@ DECLARE_GLOBAL_DATA_PTR; #define SPI_CMD_CS1_EN BIT(6) #define SPI_CMD_CS0_EN BIT(5) #define SPI_CMD_BIT_LENGTH BIT(4) -#define SPI_CMD_BIT_LENGTH_MASK 0x0000001F +#define SPI_CMD_BIT_LENGTH_MASK GENMASK(4, 0) #define SPI_STAT_BSY BIT(31) #define SPI_STAT_RDY BIT(30) |