Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181328
b: refs/heads/master
c: 900c544
h: refs/heads/master
v: v3
  • Loading branch information
Stephen M. Cameron authored and James Bottomley committed Feb 17, 2010
1 parent 0fb4bf3 commit ba293e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84ca0be2a2cd9730683310b831db9d2fa60b3b0b
refs/heads/master: 900c54404a9456b3ff10745e5e8f64b12c3a6ef7
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/hpsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -2693,7 +2693,7 @@ static inline unsigned long get_next_completion(struct ctlr_info *h)
return h->access.command_completed(h);
}

static inline int interrupt_pending(struct ctlr_info *h)
static inline bool interrupt_pending(struct ctlr_info *h)
{
return h->access.intr_pending(h);
}
Expand Down
8 changes: 3 additions & 5 deletions trunk/drivers/scsi/hpsa.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct access_method {
struct CommandList *c);
void (*set_intr_mask)(struct ctlr_info *h, unsigned long val);
unsigned long (*fifo_full)(struct ctlr_info *h);
unsigned long (*intr_pending)(struct ctlr_info *h);
bool (*intr_pending)(struct ctlr_info *h);
unsigned long (*command_completed)(struct ctlr_info *h);
};

Expand Down Expand Up @@ -233,14 +233,12 @@ static unsigned long SA5_completed(struct ctlr_info *h)
/*
* Returns true if an interrupt is pending..
*/
static unsigned long SA5_intr_pending(struct ctlr_info *h)
static bool SA5_intr_pending(struct ctlr_info *h)
{
unsigned long register_value =
readl(h->vaddr + SA5_INTR_STATUS);
dev_dbg(&h->pdev->dev, "intr_pending %lx\n", register_value);
if (register_value & SA5_INTR_PENDING)
return 1;
return 0 ;
return register_value & SA5_INTR_PENDING;
}


Expand Down

0 comments on commit ba293e9

Please sign in to comment.