lpddr: replace open-coded ARRAY_SIZE with macro
PATCH 4/11 lpddr: replace open-coded ARRAY_SIZE with macro
Signed-off-by Jim Cromie <[email protected]>
--- drivers/mtd/lpddr/qinfo_probe.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/lpddr/qinfo_probe.c +1 -1
@@ -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;
Signature · 1 line
1.7.8.1
Artem Bityutskiy
AppliedQuoted 1 line · Jim Cromie
Signed-off-by Jim Cromie <[email protected]>
Pushed to l2-mtd.git, thanks!
Signature · 2 lines
Best Regards, Artem Bityutskiy