ALSA: hda/ca0132: make some const arrays static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Fri, 16 Oct 2020 22:49:13 +0000 (23:49 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 17 Oct 2020 07:58:59 +0000 (09:58 +0200)
commit9ce88a13b3016436441fec0b8b00ce8116f91269
treefb3bf92b2ec2d5cc8ba2be0621b47f40a0a78d99
parenta97cbcd00f05a23146fdd8269011c40b7229242d
ALSA: hda/ca0132: make some const arrays static, makes object smaller

Don't populate const arrays on the stack but instead make them
static. Makes the object code smaller by 57 bytes.

Before:
   text    data     bss     dec     hex filename
 173256   38016     192  211464   33a08 sound/pci/hda/patch_ca0132.o

After:
   text    data     bss     dec     hex filename
 172879   38336     192  211407   339cf sound/pci/hda/patch_ca0132.o

(gcc version 10.2.0)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20201016224913.687724-1-colin.king@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c