mtd: lpddr: replace open-coded ARRAY_SIZE with macro
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon May 14 15:59:02 EDT 2012
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=9e5324b68c437804c7d3a3eb7c36001737b075e7
Commit: 9e5324b68c437804c7d3a3eb7c36001737b075e7
Parent: fdeb42e191cc442d19147cbb7f32b109bd3fc525
Author: Jim Cromie <jim.cromie at gmail.com>
AuthorDate: Tue Apr 10 18:55:56 2012 -0600
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Sun May 13 22:40:47 2012 -0500
mtd: lpddr: replace open-coded ARRAY_SIZE with macro
Signed-off-by: Jim Cromie <jim.cromie at gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at linux.intel.com>
(cherry picked from commit cad4f8902576e464914f6659a604f1df5b62501d)
---
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 dbfe17b..45abed6 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[] = {
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;
More information about the linux-mtd-cvs
mailing list