ALSA: oxfw: make read-only const array models static

Don't populate the const array on the stack, instead make it static.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20230627113253.700065-1-colin.i.king@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Colin Ian King
2023-06-27 12:32:53 +01:00
committed by Takashi Iwai
parent d6048fdc87
commit d17f0ce9a9

View File

@@ -44,7 +44,7 @@ struct compat_info {
static bool detect_loud_models(struct fw_unit *unit) static bool detect_loud_models(struct fw_unit *unit)
{ {
const char *const models[] = { static const char *const models[] = {
"Onyxi", "Onyxi",
"Onyx-i", "Onyx-i",
"Onyx 1640i", "Onyx 1640i",