mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
spi/pxa2xx: Use define for SSSR_TFL_MASK instead of plain numbers
Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Dirk Brandewie <[email protected]>
This commit is contained in:
parent
49cbb1e0b6
commit
4a25605fb7
2 changed files with 6 additions and 5 deletions
|
|
@ -224,7 +224,7 @@ static int null_writer(struct driver_data *drv_data)
|
|||
void __iomem *reg = drv_data->ioaddr;
|
||||
u8 n_bytes = drv_data->n_bytes;
|
||||
|
||||
if (((read_SSSR(reg) & 0x00000f00) == 0x00000f00)
|
||||
if (((read_SSSR(reg) & SSSR_TFL_MASK) == SSSR_TFL_MASK)
|
||||
|| (drv_data->tx == drv_data->tx_end))
|
||||
return 0;
|
||||
|
||||
|
|
@ -252,7 +252,7 @@ static int u8_writer(struct driver_data *drv_data)
|
|||
{
|
||||
void __iomem *reg = drv_data->ioaddr;
|
||||
|
||||
if (((read_SSSR(reg) & 0x00000f00) == 0x00000f00)
|
||||
if (((read_SSSR(reg) & SSSR_TFL_MASK) == SSSR_TFL_MASK)
|
||||
|| (drv_data->tx == drv_data->tx_end))
|
||||
return 0;
|
||||
|
||||
|
|
@ -279,7 +279,7 @@ static int u16_writer(struct driver_data *drv_data)
|
|||
{
|
||||
void __iomem *reg = drv_data->ioaddr;
|
||||
|
||||
if (((read_SSSR(reg) & 0x00000f00) == 0x00000f00)
|
||||
if (((read_SSSR(reg) & SSSR_TFL_MASK) == SSSR_TFL_MASK)
|
||||
|| (drv_data->tx == drv_data->tx_end))
|
||||
return 0;
|
||||
|
||||
|
|
@ -306,7 +306,7 @@ static int u32_writer(struct driver_data *drv_data)
|
|||
{
|
||||
void __iomem *reg = drv_data->ioaddr;
|
||||
|
||||
if (((read_SSSR(reg) & 0x00000f00) == 0x00000f00)
|
||||
if (((read_SSSR(reg) & SSSR_TFL_MASK) == SSSR_TFL_MASK)
|
||||
|| (drv_data->tx == drv_data->tx_end))
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue