aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/hpsa.h')
-rw-r--r--drivers/scsi/hpsa.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/scsi/hpsa.h b/drivers/scsi/hpsa.h
index cdac95b0e65f..0eab386a03be 100644
--- a/drivers/scsi/hpsa.h
+++ b/drivers/scsi/hpsa.h
@@ -33,7 +33,7 @@ struct access_method {
33 struct CommandList *c); 33 struct CommandList *c);
34 void (*set_intr_mask)(struct ctlr_info *h, unsigned long val); 34 void (*set_intr_mask)(struct ctlr_info *h, unsigned long val);
35 unsigned long (*fifo_full)(struct ctlr_info *h); 35 unsigned long (*fifo_full)(struct ctlr_info *h);
36 unsigned long (*intr_pending)(struct ctlr_info *h); 36 bool (*intr_pending)(struct ctlr_info *h);
37 unsigned long (*command_completed)(struct ctlr_info *h); 37 unsigned long (*command_completed)(struct ctlr_info *h);
38}; 38};
39 39
@@ -233,14 +233,12 @@ static unsigned long SA5_completed(struct ctlr_info *h)
233/* 233/*
234 * Returns true if an interrupt is pending.. 234 * Returns true if an interrupt is pending..
235 */ 235 */
236static unsigned long SA5_intr_pending(struct ctlr_info *h) 236static bool SA5_intr_pending(struct ctlr_info *h)
237{ 237{
238 unsigned long register_value = 238 unsigned long register_value =
239 readl(h->vaddr + SA5_INTR_STATUS); 239 readl(h->vaddr + SA5_INTR_STATUS);
240 dev_dbg(&h->pdev->dev, "intr_pending %lx\n", register_value); 240 dev_dbg(&h->pdev->dev, "intr_pending %lx\n", register_value);
241 if (register_value & SA5_INTR_PENDING) 241 return register_value & SA5_INTR_PENDING;
242 return 1;
243 return 0 ;
244} 242}
245 243
246 244