diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2023-06-28 08:54:06 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-06-28 11:42:55 +0200 |
commit | a64db0b9dfac2011e14e88faf59847baac1dad5a (patch) | |
tree | 5f69a14a795854d98e0f206943e97ac6b5cc3e3b /sound/firewire | |
parent | d17f0ce9a9ee1372b9c71b4dc9bd6c8fbe73790f (diff) |
ALSA: fireface: make read-only const array for model names static
It is preferable not to populate the constant array for constant strings
on the stack.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20230627235406.289970-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire')
-rw-r--r-- | sound/firewire/fireface/ff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/firewire/fireface/ff.c b/sound/firewire/fireface/ff.c index 82241058ea14..6e84e4787259 100644 --- a/sound/firewire/fireface/ff.c +++ b/sound/firewire/fireface/ff.c @@ -16,7 +16,7 @@ MODULE_LICENSE("GPL"); static void name_card(struct snd_ff *ff) { struct fw_device *fw_dev = fw_parent_device(ff->unit); - const char *const names[] = { + static const char *const names[] = { [SND_FF_UNIT_VERSION_FF800] = "Fireface800", [SND_FF_UNIT_VERSION_FF400] = "Fireface400", [SND_FF_UNIT_VERSION_UFX] = "FirefaceUFX", |