diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2010-11-22 20:12:15 -0500 |
---|---|---|
committer | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2010-12-01 06:18:32 -0500 |
commit | 4a25605fb71f02b4f80091df91f777225a0309c5 (patch) | |
tree | 4ba532f527c3e67fa0e511030031ede6d3321145 /drivers/spi/pxa2xx_spi.c | |
parent | 49cbb1e0b6dcba9170e72fdf40c75fc24cadba4b (diff) |
spi/pxa2xx: Use define for SSSR_TFL_MASK instead of plain numbers
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com>
Diffstat (limited to 'drivers/spi/pxa2xx_spi.c')
-rw-r--r-- | drivers/spi/pxa2xx_spi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/spi/pxa2xx_spi.c b/drivers/spi/pxa2xx_spi.c index 1865c23f2175..55083445aae6 100644 --- a/drivers/spi/pxa2xx_spi.c +++ b/drivers/spi/pxa2xx_spi.c | |||
@@ -224,7 +224,7 @@ static int null_writer(struct driver_data *drv_data) | |||
224 | void __iomem *reg = drv_data->ioaddr; | 224 | void __iomem *reg = drv_data->ioaddr; |
225 | u8 n_bytes = drv_data->n_bytes; | 225 | u8 n_bytes = drv_data->n_bytes; |
226 | 226 | ||
227 | if (((read_SSSR(reg) & 0x00000f00) == 0x00000f00) | 227 | if (((read_SSSR(reg) & SSSR_TFL_MASK) == SSSR_TFL_MASK) |
228 | || (drv_data->tx == drv_data->tx_end)) | 228 | || (drv_data->tx == drv_data->tx_end)) |
229 | return 0; | 229 | return 0; |
230 | 230 | ||
@@ -252,7 +252,7 @@ static int u8_writer(struct driver_data *drv_data) | |||
252 | { | 252 | { |
253 | void __iomem *reg = drv_data->ioaddr; | 253 | void __iomem *reg = drv_data->ioaddr; |
254 | 254 | ||
255 | if (((read_SSSR(reg) & 0x00000f00) == 0x00000f00) | 255 | if (((read_SSSR(reg) & SSSR_TFL_MASK) == SSSR_TFL_MASK) |
256 | || (drv_data->tx == drv_data->tx_end)) | 256 | || (drv_data->tx == drv_data->tx_end)) |
257 | return 0; | 257 | return 0; |
258 | 258 | ||
@@ -279,7 +279,7 @@ static int u16_writer(struct driver_data *drv_data) | |||
279 | { | 279 | { |
280 | void __iomem *reg = drv_data->ioaddr; | 280 | void __iomem *reg = drv_data->ioaddr; |
281 | 281 | ||
282 | if (((read_SSSR(reg) & 0x00000f00) == 0x00000f00) | 282 | if (((read_SSSR(reg) & SSSR_TFL_MASK) == SSSR_TFL_MASK) |
283 | || (drv_data->tx == drv_data->tx_end)) | 283 | || (drv_data->tx == drv_data->tx_end)) |
284 | return 0; | 284 | return 0; |
285 | 285 | ||
@@ -306,7 +306,7 @@ static int u32_writer(struct driver_data *drv_data) | |||
306 | { | 306 | { |
307 | void __iomem *reg = drv_data->ioaddr; | 307 | void __iomem *reg = drv_data->ioaddr; |
308 | 308 | ||
309 | if (((read_SSSR(reg) & 0x00000f00) == 0x00000f00) | 309 | if (((read_SSSR(reg) & SSSR_TFL_MASK) == SSSR_TFL_MASK) |
310 | || (drv_data->tx == drv_data->tx_end)) | 310 | || (drv_data->tx == drv_data->tx_end)) |
311 | return 0; | 311 | return 0; |
312 | 312 | ||