Commit a048d4bbb1079b4b70bb5fabca4661ba373fbc4b
1 parent
69fd4c386c
Exists in
v2017.01-smarct4x
and in
30 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/spi/mpc8xxx_spi.c
... | ... | @@ -55,7 +55,7 @@ |
55 | 55 | * some registers |
56 | 56 | */ |
57 | 57 | spi->mode = SPI_MODE_REV | SPI_MODE_MS | SPI_MODE_EN; |
58 | - spi->mode = (spi->mode & 0xfff0ffff) | (1 << 16); /* Use SYSCLK / 8 | |
58 | + spi->mode = (spi->mode & 0xfff0ffff) | BIT(16); /* Use SYSCLK / 8 | |
59 | 59 | (16.67MHz typ.) */ |
60 | 60 | spi->event = 0xffffffff; /* Clear all SPI events */ |
61 | 61 | spi->mask = 0x00000000; /* Mask all SPI interrupts */ |