Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: sparc: More constifications

Apply const prefix to the static tables for rates, bits and strings.

Just for minor optimization and no functional changes.

Link: https://lore.kernel.org/r/20200105144823.29547-38-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>

+3 -3
+2 -2
sound/sparc/cs4231.c
··· 184 184 * Some variables 185 185 */ 186 186 187 - static unsigned char freq_bits[14] = { 187 + static const unsigned char freq_bits[14] = { 188 188 /* 5510 */ 0x00 | CS4231_XTAL2, 189 189 /* 6620 */ 0x0E | CS4231_XTAL2, 190 190 /* 8000 */ 0x00 | CS4231_XTAL1, ··· 218 218 &hw_constraints_rates); 219 219 } 220 220 221 - static unsigned char snd_cs4231_original_image[32] = 221 + static const unsigned char snd_cs4231_original_image[32] = 222 222 { 223 223 0x00, /* 00/00 - lic */ 224 224 0x00, /* 01/01 - ric */
+1 -1
sound/sparc/dbri.c
··· 104 104 MODULE_PARM_DESC(dbri_debug, "Debug value for Sun DBRI soundcard."); 105 105 106 106 #ifdef DBRI_DEBUG 107 - static char *cmds[] = { 107 + static const char * const cmds[] = { 108 108 "WAIT", "PAUSE", "JUMP", "IIQ", "REX", "SDP", "CDP", "DTS", 109 109 "SSP", "CHI", "NT", "TE", "CDEC", "TEST", "CDM", "RESRV" 110 110 };