mfd: Off by one calculating size for timberdale
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>
This commit is contained in:
committed by
Samuel Ortiz
parent
f52e62dcc1
commit
5f7df57eec
@@ -66,7 +66,7 @@
|
|||||||
|
|
||||||
#define CHIPCTLOFFSET 0x800
|
#define CHIPCTLOFFSET 0x800
|
||||||
#define CHIPCTLEND 0x8ff
|
#define CHIPCTLEND 0x8ff
|
||||||
#define CHIPCTLSIZE (CHIPCTLEND - CHIPCTLOFFSET)
|
#define CHIPCTLSIZE (CHIPCTLEND - CHIPCTLOFFSET + 1)
|
||||||
|
|
||||||
#define INTCOFFSET 0xc00
|
#define INTCOFFSET 0xc00
|
||||||
#define INTCEND 0xfff
|
#define INTCEND 0xfff
|
||||||
|
Reference in New Issue
Block a user