ALSA: timer: Constify snd_timer_hardware definitions

Most of snd_timer_hardware definitions do simply copying to another
struct as-is.  Mark them as const for further optimization.

There should be no functional changes by this patch.

Link: https://lore.kernel.org/r/20200103081714.9560-21-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2020-01-03 09:16:36 +01:00
Родитель e382d7fcfc
Коммит df76996a2c
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -75,7 +75,7 @@ static int snd_pcm_timer_stop(struct snd_timer * timer)
return 0;
}
static struct snd_timer_hardware snd_pcm_timer =
static const struct snd_timer_hardware snd_pcm_timer =
{
.flags = SNDRV_TIMER_HW_AUTO | SNDRV_TIMER_HW_SLAVE,
.resolution = 0,

Просмотреть файл

@ -1199,7 +1199,7 @@ static int snd_timer_s_close(struct snd_timer *timer)
return 0;
}
static struct snd_timer_hardware snd_timer_system =
static const struct snd_timer_hardware snd_timer_system =
{
.flags = SNDRV_TIMER_HW_FIRST | SNDRV_TIMER_HW_TASKLET,
.resolution = 1000000000L / HZ,