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

ALSA: mts64: More constifications

Apply const prefix to the static mapping tables.

Just for minor optimization and no functional changes.

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

+2 -2
+2 -2
sound/drivers/mts64.c
··· 261 261 */ 262 262 static u8 mts64_map_midi_input(u8 c) 263 263 { 264 - static u8 map[] = { 0, 1, 4, 2, 3 }; 264 + static const u8 map[] = { 0, 1, 4, 2, 3 }; 265 265 266 266 return map[c]; 267 267 } ··· 353 353 u8 seconds, u8 frames, 354 354 u8 idx) 355 355 { 356 - static u8 fps[5] = { MTS64_CMD_SMPTE_FPS_24, 356 + static const u8 fps[5] = { MTS64_CMD_SMPTE_FPS_24, 357 357 MTS64_CMD_SMPTE_FPS_25, 358 358 MTS64_CMD_SMPTE_FPS_2997, 359 359 MTS64_CMD_SMPTE_FPS_30D,