Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 287558fe authored by Jim Cromie's avatar Jim Cromie Committed by David Woodhouse
Browse files

mtd: lpddr: replace open-coded ARRAY_SIZE with macro

parent 4d16cd65
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;