Skip to content

Commit

Permalink
mfd: Off by one calculating size for timberdale
Browse files Browse the repository at this point in the history
I'm pretty sure that it should be + 1 here.  It's an off by one, because
we start counting at zero.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Richard Röjfors <richard.rojfors@pelagicore.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Dan Carpenter authored and Samuel Ortiz committed May 27, 2010
1 parent f52e62d commit 5f7df57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/timberdale.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

#define CHIPCTLOFFSET 0x800
#define CHIPCTLEND 0x8ff
#define CHIPCTLSIZE (CHIPCTLEND - CHIPCTLOFFSET)
#define CHIPCTLSIZE (CHIPCTLEND - CHIPCTLOFFSET + 1)

#define INTCOFFSET 0xc00
#define INTCEND 0xfff
Expand Down

0 comments on commit 5f7df57

Please sign in to comment.