diff options
author | Jim Cromie <jim.cromie@gmail.com> | 2012-04-10 20:55:56 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-05-13 23:47:31 -0400 |
commit | 287558fe0e06a85c32863ec9204ed39fc218c5e3 (patch) | |
tree | 86779af806c68ab96fc6cea1d29152b071869ee3 /drivers/mtd/lpddr | |
parent | 4d16cd658700a36af8788a09b4789d09da355a8c (diff) |
mtd: lpddr: replace open-coded ARRAY_SIZE with macro
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>
Diffstat (limited to 'drivers/mtd/lpddr')
-rw-r--r-- | drivers/mtd/lpddr/qinfo_probe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/lpddr/qinfo_probe.c b/drivers/mtd/lpddr/qinfo_probe.c index dbfe17baf046..45abed67f1ef 100644 --- 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[] = { | |||
57 | 57 | ||
58 | static long lpddr_get_qinforec_pos(struct map_info *map, char *id_str) | 58 | static long lpddr_get_qinforec_pos(struct map_info *map, char *id_str) |
59 | { | 59 | { |
60 | int qinfo_lines = sizeof(qinfo_array)/sizeof(struct qinfo_query_info); | 60 | int qinfo_lines = ARRAY_SIZE(qinfo_array); |
61 | int i; | 61 | int i; |
62 | int bankwidth = map_bankwidth(map) * 8; | 62 | int bankwidth = map_bankwidth(map) * 8; |
63 | int major, minor; | 63 | int major, minor; |