Commit ef27a256 authored by Jérôme Pouiller's avatar Jérôme Pouiller Committed by Greg Kroah-Hartman

staging: wfx: also show unnamed counters fields

The struct hif_mib_extended_count_table contains some debug information
accessible from the debugfs. The struct contains not yet used fields at
the end. In order to support future firmware versions, this patch also
show these not yet named fields.
Signed-off-by: default avatarJérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200427134031.323403-14-Jerome.Pouiller@silabs.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 27602207
......@@ -112,6 +112,12 @@ static int wfx_counters_show(struct seq_file *seq, void *v)
#undef PUT_COUNTER
for (i = 0; i < ARRAY_SIZE(counters[0].reserved); i++)
seq_printf(seq, "reserved[%02d]%12s %12d %12d %12d\n", i, "",
le32_to_cpu(counters[2].reserved[i]),
le32_to_cpu(counters[0].reserved[i]),
le32_to_cpu(counters[1].reserved[i]));
return 0;
}
DEFINE_SHOW_ATTRIBUTE(wfx_counters);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment