projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f52e62d
)
mfd: Off by one calculating size for timberdale
author
Dan Carpenter
<
[email protected]
>
Mon, 22 Mar 2010 12:12:42 +0000
(15:12 +0300)
committer
Samuel Ortiz
<
[email protected]
>
Thu, 27 May 2010 23:37:30 +0000
(
01:37
+0200)
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 <
[email protected]
>
Acked-by: Richard Röjfors <
[email protected]
>
Signed-off-by: Samuel Ortiz <
[email protected]
>
drivers/mfd/timberdale.h
patch
|
blob
|
history
diff --git
a/drivers/mfd/timberdale.h
b/drivers/mfd/timberdale.h
index 8d27ffabc25de748a32945a9b916c251ad6beadd..902c45120241951c9576a04d0e7a212d8a24c0bf 100644
(file)
--- a/
drivers/mfd/timberdale.h
+++ b/
drivers/mfd/timberdale.h
@@
-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