projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d16cd6
)
mtd: lpddr: replace open-coded ARRAY_SIZE with macro
author
Jim Cromie
<jim.cromie@gmail.com>
Wed, 11 Apr 2012 00:55:56 +0000
(18:55 -0600)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Mon, 14 May 2012 03:47:31 +0000
(22:47 -0500)
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/lpddr/qinfo_probe.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/lpddr/qinfo_probe.c
b/drivers/mtd/lpddr/qinfo_probe.c
index
dbfe17b
..
45abed6
100644
(file)
--- a/
drivers/mtd/lpddr/qinfo_probe.c
+++ b/
drivers/mtd/lpddr/qinfo_probe.c
@@
-57,7
+57,7
@@
static struct qinfo_query_info qinfo_array[] = {
static long lpddr_get_qinforec_pos(struct map_info *map, char *id_str)
{
- int qinfo_lines =
sizeof(qinfo_array)/sizeof(struct qinfo_query_info
);
+ int qinfo_lines =
ARRAY_SIZE(qinfo_array
);
int i;
int bankwidth = map_bankwidth(map) * 8;
int major, minor;