diff options
author | Jagan Teki <jteki@openedev.com> | 2015-10-27 23:09:56 +0530 |
---|---|---|
committer | Jagan Teki <jteki@openedev.com> | 2015-10-28 13:53:58 +0530 |
commit | 9c63d44e92e3c90080491ba4e61e36e39a20aea8 (patch) | |
tree | e463953979a6e8255bb40278948c01f620bc2926 /drivers/spi/altera_spi.c | |
parent | d2436301c52a823f0f0b3c2ef4b966a5bced489c (diff) | |
download | u-boot-imx-9c63d44e92e3c90080491ba4e61e36e39a20aea8.zip u-boot-imx-9c63d44e92e3c90080491ba4e61e36e39a20aea8.tar.gz u-boot-imx-9c63d44e92e3c90080491ba4e61e36e39a20aea8.tar.bz2 |
spi: altera_spi: Use BIT macro
Replace numerical bit shift with BIT macro
in altera_spi
:%s/(1 << nr)/BIT(nr)/g
where nr = 0, 1, 2 .... 31
Cc: Marek Vasut <marex@denx.de>
Acked-by: Thomas Chou <thomas@wytron.com.tw>
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'drivers/spi/altera_spi.c')
-rw-r--r-- | drivers/spi/altera_spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c index ff3512a..3dbcfaa 100644 --- a/drivers/spi/altera_spi.c +++ b/drivers/spi/altera_spi.c @@ -38,8 +38,8 @@ struct altera_spi_priv { struct altera_spi_regs *regs; }; -#define ALTERA_SPI_STATUS_RRDY_MSK (1 << 7) -#define ALTERA_SPI_CONTROL_SSO_MSK (1 << 10) +#define ALTERA_SPI_STATUS_RRDY_MSK BIT(7) +#define ALTERA_SPI_CONTROL_SSO_MSK BIT(10) static void spi_cs_activate(struct udevice *dev, uint cs) { |