diff options
| author | Thorsten Blum <blum@kernel.org> | 2026-10-18 14:41:55 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-10-19 10:41:36 +0200 |
| commit | e45d0fad00bacca06a55dee30197367916a85b41 (patch) | |
| tree | 0279477a13740e07c587f0fc202868d2833ac40a /tools/lib/python | |
| parent | 4c0d77c469398ba4a7e690b463818b66c430af59 (diff) | |
ALSA: usb-audio: Simplify usb_audio_make_longname()
To prepare for removing strlcat() from the kernel [1], track the output
length and replace strlcat() with scnprintf() and strscpy().
Replace the speed switch statement with a lookup table.
No functional change.
Link: https://github.com/KSPP/linux/issues/370 [1]
Signed-off-by: Thorsten Blum <blum@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20261018124155.2081-4-blum@kernel.org
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
