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>
This commit is contained in:
parent
8fc179162d
commit
616986985d
|
@ -261,7 +261,7 @@ static int mts64_device_close(struct mts64 *mts)
|
||||||
*/
|
*/
|
||||||
static u8 mts64_map_midi_input(u8 c)
|
static u8 mts64_map_midi_input(u8 c)
|
||||||
{
|
{
|
||||||
static u8 map[] = { 0, 1, 4, 2, 3 };
|
static const u8 map[] = { 0, 1, 4, 2, 3 };
|
||||||
|
|
||||||
return map[c];
|
return map[c];
|
||||||
}
|
}
|
||||||
|
@ -353,7 +353,7 @@ static void mts64_smpte_start(struct parport *p,
|
||||||
u8 seconds, u8 frames,
|
u8 seconds, u8 frames,
|
||||||
u8 idx)
|
u8 idx)
|
||||||
{
|
{
|
||||||
static u8 fps[5] = { MTS64_CMD_SMPTE_FPS_24,
|
static const u8 fps[5] = { MTS64_CMD_SMPTE_FPS_24,
|
||||||
MTS64_CMD_SMPTE_FPS_25,
|
MTS64_CMD_SMPTE_FPS_25,
|
||||||
MTS64_CMD_SMPTE_FPS_2997,
|
MTS64_CMD_SMPTE_FPS_2997,
|
||||||
MTS64_CMD_SMPTE_FPS_30D,
|
MTS64_CMD_SMPTE_FPS_30D,
|
||||||
|
|
Loading…
Reference in New Issue