diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-03 09:16:37 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-03 09:24:07 +0100 |
commit | 5ff16a3d48ef58be8fd93035ae9272d4cc990c49 (patch) | |
tree | 2fb32d21a58993b129033a3a07c2efcd95869407 /sound/pci/emu10k1/timer.c | |
parent | ALSA: timer: Constify snd_timer_hardware definitions (diff) | |
download | linux-5ff16a3d48ef58be8fd93035ae9272d4cc990c49.tar.xz linux-5ff16a3d48ef58be8fd93035ae9272d4cc990c49.zip |
ALSA: 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-22-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/emu10k1/timer.c')
-rw-r--r-- | sound/pci/emu10k1/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/emu10k1/timer.c b/sound/pci/emu10k1/timer.c index 9ef3b999dcd6..c2803000aace 100644 --- a/sound/pci/emu10k1/timer.c +++ b/sound/pci/emu10k1/timer.c @@ -52,7 +52,7 @@ static int snd_emu10k1_timer_precise_resolution(struct snd_timer *timer, return 0; } -static struct snd_timer_hardware snd_emu10k1_timer_hw = { +static const struct snd_timer_hardware snd_emu10k1_timer_hw = { .flags = SNDRV_TIMER_HW_AUTO, .resolution = 20833, /* 1 sample @ 48KHZ = 20.833...us */ .ticks = 1024, |