diff options
author | Linus Walleij <linus.walleij@stericsson.com> | 2010-12-22 17:13:48 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-12-23 23:06:47 -0500 |
commit | dec5a581eb5b7d1abc90885d897d2468f1e60b21 (patch) | |
tree | d6ffd94637b629fc03bd1a31f827396c40602d37 /drivers/spi/amba-pl022.c | |
parent | 082086f2ce53c69260396e977d29972128def1d7 (diff) |
spi/pl022: convert busy flag to a bool
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/amba-pl022.c')
-rw-r--r-- | drivers/spi/amba-pl022.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/spi/amba-pl022.c b/drivers/spi/amba-pl022.c index 36ec1327a19b..4b618f0e44dd 100644 --- a/drivers/spi/amba-pl022.c +++ b/drivers/spi/amba-pl022.c | |||
@@ -369,7 +369,7 @@ struct pl022 { | |||
369 | struct work_struct pump_messages; | 369 | struct work_struct pump_messages; |
370 | spinlock_t queue_lock; | 370 | spinlock_t queue_lock; |
371 | struct list_head queue; | 371 | struct list_head queue; |
372 | int busy; | 372 | bool busy; |
373 | int run; | 373 | int run; |
374 | /* Message transfer pump */ | 374 | /* Message transfer pump */ |
375 | struct tasklet_struct pump_transfers; | 375 | struct tasklet_struct pump_transfers; |
@@ -1461,7 +1461,7 @@ static void pump_messages(struct work_struct *work) | |||
1461 | /* Lock queue and check for queue work */ | 1461 | /* Lock queue and check for queue work */ |
1462 | spin_lock_irqsave(&pl022->queue_lock, flags); | 1462 | spin_lock_irqsave(&pl022->queue_lock, flags); |
1463 | if (list_empty(&pl022->queue) || pl022->run == QUEUE_STOPPED) { | 1463 | if (list_empty(&pl022->queue) || pl022->run == QUEUE_STOPPED) { |
1464 | pl022->busy = 0; | 1464 | pl022->busy = false; |
1465 | spin_unlock_irqrestore(&pl022->queue_lock, flags); | 1465 | spin_unlock_irqrestore(&pl022->queue_lock, flags); |
1466 | return; | 1466 | return; |
1467 | } | 1467 | } |
@@ -1475,7 +1475,7 @@ static void pump_messages(struct work_struct *work) | |||
1475 | list_entry(pl022->queue.next, struct spi_message, queue); | 1475 | list_entry(pl022->queue.next, struct spi_message, queue); |
1476 | 1476 | ||
1477 | list_del_init(&pl022->cur_msg->queue); | 1477 | list_del_init(&pl022->cur_msg->queue); |
1478 | pl022->busy = 1; | 1478 | pl022->busy = true; |
1479 | spin_unlock_irqrestore(&pl022->queue_lock, flags); | 1479 | spin_unlock_irqrestore(&pl022->queue_lock, flags); |
1480 | 1480 | ||
1481 | /* Initial message state */ | 1481 | /* Initial message state */ |
@@ -1508,7 +1508,7 @@ static int __init init_queue(struct pl022 *pl022) | |||
1508 | spin_lock_init(&pl022->queue_lock); | 1508 | spin_lock_init(&pl022->queue_lock); |
1509 | 1509 | ||
1510 | pl022->run = QUEUE_STOPPED; | 1510 | pl022->run = QUEUE_STOPPED; |
1511 | pl022->busy = 0; | 1511 | pl022->busy = false; |
1512 | 1512 | ||
1513 | tasklet_init(&pl022->pump_transfers, | 1513 | tasklet_init(&pl022->pump_transfers, |
1514 | pump_transfers, (unsigned long)pl022); | 1514 | pump_transfers, (unsigned long)pl022); |