Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199397
b: refs/heads/master
c: fffba64
h: refs/heads/master
i:
  199395: 2ade82d
v: v3
  • Loading branch information
Phil Carmody authored and Samuel Ortiz committed May 27, 2010
1 parent 35eadc8 commit 177e50b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: da1e368032d7ff241b9cf1059fa059d781cfeba7
refs/heads/master: fffba64ca37e8f06020f89e878f0d76a8e121c4e
4 changes: 2 additions & 2 deletions trunk/drivers/mfd/wm8400-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ static int wm8400_read(struct wm8400 *wm8400, u8 reg, int num_regs, u16 *dest)
{
int i, ret = 0;

BUG_ON(reg + num_regs - 1 > ARRAY_SIZE(wm8400->reg_cache));
BUG_ON(reg + num_regs > ARRAY_SIZE(wm8400->reg_cache));

/* If there are any volatile reads then read back the entire block */
for (i = reg; i < reg + num_regs; i++)
Expand All @@ -144,7 +144,7 @@ static int wm8400_write(struct wm8400 *wm8400, u8 reg, int num_regs,
{
int ret, i;

BUG_ON(reg + num_regs - 1 > ARRAY_SIZE(wm8400->reg_cache));
BUG_ON(reg + num_regs > ARRAY_SIZE(wm8400->reg_cache));

for (i = 0; i < num_regs; i++) {
BUG_ON(!reg_data[reg + i].writable);
Expand Down

0 comments on commit 177e50b

Please sign in to comment.