The macro was using the parameter for referencing the length field, which
used the same suffix as the parameter name.
Rename the length parameter to correctly access the length field.
Signed-off-by: David Bauer <david.bauer@uniberg.com>
.data._field##_n = ARRAY_SIZE(_val), \
.data._field = (_val)
-#define QMI_INIT_ARRAY(_field, _val, _n) \
- .data._field##_n = (_n), \
+#define QMI_INIT_ARRAY(_field, _val, _num_elems) \
+ .data._field##_n = (_num_elems), \
.data._field = (_val)