diff options
author | Jagan Teki <jteki@openedev.com> | 2015-10-22 20:08:07 (GMT) |
---|---|---|
committer | Jagan Teki <jteki@openedev.com> | 2015-10-27 17:51:28 (GMT) |
commit | a048d4bbb1079b4b70bb5fabca4661ba373fbc4b (patch) | |
tree | d9bce7ae6c0240a1dfebf024fa87f63a8aa7e095 /drivers/spi/mpc8xxx_spi.c | |
parent | 69fd4c386cb4ca60fa5d3c8e28d6601b1a48acac (diff) | |
download | u-boot-fsl-qoriq-a048d4bbb1079b4b70bb5fabca4661ba373fbc4b.tar.xz |
spi: mpc8xxx_spi: Use BIT macro
Replace numerical bit shift with BIT macro
in mpc8xxx_spi
:%s/(1 << nr)/BIT(nr)/g
where nr = 0, 1, 2 .... 31
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'drivers/spi/mpc8xxx_spi.c')
-rw-r--r-- | drivers/spi/mpc8xxx_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c index 0d59c36..00cbcbf 100644 --- a/drivers/spi/mpc8xxx_spi.c +++ b/drivers/spi/mpc8xxx_spi.c @@ -55,7 +55,7 @@ void spi_init(void) * some registers */ spi->mode = SPI_MODE_REV | SPI_MODE_MS | SPI_MODE_EN; - spi->mode = (spi->mode & 0xfff0ffff) | (1 << 16); /* Use SYSCLK / 8 + spi->mode = (spi->mode & 0xfff0ffff) | BIT(16); /* Use SYSCLK / 8 (16.67MHz typ.) */ spi->event = 0xffffffff; /* Clear all SPI events */ spi->mask = 0x00000000; /* Mask all SPI interrupts */ |