summaryrefslogtreecommitdiffstats
path: root/drivers/spi/amba-pl022.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@stericsson.com>2010-12-22 23:13:48 +0100
committerGrant Likely <grant.likely@secretlab.ca>2010-12-23 21:06:47 -0700
commitdec5a581eb5b7d1abc90885d897d2468f1e60b21 (patch)
treed6ffd94637b629fc03bd1a31f827396c40602d37 /drivers/spi/amba-pl022.c
parent082086f2ce53c69260396e977d29972128def1d7 (diff)
downloadlinux-dec5a581eb5b7d1abc90885d897d2468f1e60b21.tar.gz
linux-dec5a581eb5b7d1abc90885d897d2468f1e60b21.tar.bz2
linux-dec5a581eb5b7d1abc90885d897d2468f1e60b21.zip
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.c8
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 {
struct work_struct pump_messages;
spinlock_t queue_lock;
struct list_head queue;
- int busy;
+ bool busy;
int run;
/* Message transfer pump */
struct tasklet_struct pump_transfers;
@@ -1461,7 +1461,7 @@ static void pump_messages(struct work_struct *work)
/* Lock queue and check for queue work */
spin_lock_irqsave(&pl022->queue_lock, flags);
if (list_empty(&pl022->queue) || pl022->run == QUEUE_STOPPED) {
- pl022->busy = 0;
+ pl022->busy = false;
spin_unlock_irqrestore(&pl022->queue_lock, flags);
return;
}
@@ -1475,7 +1475,7 @@ static void pump_messages(struct work_struct *work)
list_entry(pl022->queue.next, struct spi_message, queue);
list_del_init(&pl022->cur_msg->queue);
- pl022->busy = 1;
+ pl022->busy = true;
spin_unlock_irqrestore(&pl022->queue_lock, flags);
/* Initial message state */
@@ -1508,7 +1508,7 @@ static int __init init_queue(struct pl022 *pl022)
spin_lock_init(&pl022->queue_lock);
pl022->run = QUEUE_STOPPED;
- pl022->busy = 0;
+ pl022->busy = false;
tasklet_init(&pl022->pump_transfers,
pump_transfers, (unsigned long)pl022);