diff options
author | Jagan Teki <jteki@openedev.com> | 2015-10-23 01:37:18 +0530 |
---|---|---|
committer | Jagan Teki <jteki@openedev.com> | 2015-10-27 23:19:29 +0530 |
commit | 29e6abd94b0d879b0b92538d41b80d22b4a28d2c (patch) | |
tree | 91955d54a83029562e66de6aba3c169cde309b82 /drivers/spi/fsl_dspi.c | |
parent | 431a9f0286dc5041b47520479fab388b7917521b (diff) | |
download | u-boot-29e6abd94b0d879b0b92538d41b80d22b4a28d2c.tar.gz |
spi: fsl: Use BIT macro
Replace numerical bit shift with BIT macro
in fsl_*spi.c
:%s/(1 << nr)/BIT(nr)/g
where nr = 0, 1, 2 .... 31
Cc: York Sun <yorksun@freescale.com>
Cc: Haikun Wang <Haikun.Wang@freescale.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'drivers/spi/fsl_dspi.c')
-rw-r--r-- | drivers/spi/fsl_dspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/fsl_dspi.c b/drivers/spi/fsl_dspi.c index 887edd801a..c8dcb277f2 100644 --- a/drivers/spi/fsl_dspi.c +++ b/drivers/spi/fsl_dspi.c @@ -24,7 +24,7 @@ DECLARE_GLOBAL_DATA_PTR; /* fsl_dspi_platdata flags */ -#define DSPI_FLAG_REGMAP_ENDIAN_BIG (1 << 0) +#define DSPI_FLAG_REGMAP_ENDIAN_BIG BIT(0) /* idle data value */ #define DSPI_IDLE_VAL 0x0 |