mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
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>
This commit is contained in:
parent
4d16cd6587
commit
287558fe0e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user