Skip to content

Commit

Permalink
mtd: lpddr: replace open-coded ARRAY_SIZE with macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jim Cromie authored and David Woodhouse committed May 14, 2012
1 parent 4d16cd6 commit 287558f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/lpddr/qinfo_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 287558f

Please sign in to comment.