diff options
| author | Kuninori Morimoto <[email protected]> | 2018-10-30 07:47:50 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2018-11-05 11:28:00 +0000 |
| commit | c0ea089dbad47a41ae30ad290766d7a6571c9802 (patch) | |
| tree | 1353e182bc8ea0d9196bebad71d154e8411126ea /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | c16015f36cc128244c910152663de45c3b99f551 (diff) | |
ASoC: rsnd: rsnd_mod_name() handles both name and ID
Current rsnd driver is using "%s[%d]" for mod name and ID,
but, this ID portion might confusable.
For example currently, CTU ID is 0 to 7, but using 00 to 13
(= 00, 01, 02, 03, 10, 11, 12, 13) is very best matching to datasheet.
In the future, we will support BUSIFn, but it will be more complicated
numbering. To avoid future confusable code, this patch modify
rsnd_mod_name() to return understandable name.
To avoid using pointless memory, it uses static char and snprintf,
thus, rsnd_mod_name() user should use it immediately, and shouldn't keep
its pointer.
Signed-off-by: Kuninori Morimoto <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions