mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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:
committed by
Takashi Iwai
parent
d6048fdc87
commit
d17f0ce9a9
@@ -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",
|
||||||
|
Reference in New Issue
Block a user