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

ALSA: rme9652: More constifications

Apply const prefix to the channel map tables.

Just for minor optimization and no functional changes.

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

+5 -5
+5 -5
sound/pci/rme9652/rme9652.c
··· 229 229 int last_spdif_sample_rate; /* so that we can catch externally ... */ 230 230 int last_adat_sample_rate; /* ... induced rate changes */ 231 231 232 - char *channel_map; 232 + const char *channel_map; 233 233 234 234 struct snd_card *card; 235 235 struct snd_pcm *pcm; ··· 246 246 where the data for that channel can be read/written from/to. 247 247 */ 248 248 249 - static char channel_map_9652_ss[26] = { 249 + static const char channel_map_9652_ss[26] = { 250 250 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 251 251 18, 19, 20, 21, 22, 23, 24, 25 252 252 }; 253 253 254 - static char channel_map_9636_ss[26] = { 254 + static const char channel_map_9636_ss[26] = { 255 255 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 256 256 /* channels 16 and 17 are S/PDIF */ 257 257 24, 25, ··· 259 259 -1, -1, -1, -1, -1, -1, -1, -1 260 260 }; 261 261 262 - static char channel_map_9652_ds[26] = { 262 + static const char channel_map_9652_ds[26] = { 263 263 /* ADAT channels are remapped */ 264 264 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 265 265 /* channels 12 and 13 are S/PDIF */ ··· 268 268 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 269 269 }; 270 270 271 - static char channel_map_9636_ds[26] = { 271 + static const char channel_map_9636_ds[26] = { 272 272 /* ADAT channels are remapped */ 273 273 1, 3, 5, 7, 9, 11, 13, 15, 274 274 /* channels 8 and 9 are S/PDIF */