summaryrefslogtreecommitdiff
path: root/sound/isa
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@inria.fr>2020-01-01 10:43:19 +0300
committerTakashi Iwai <tiwai@suse.de>2020-01-01 14:36:19 +0300
commitcb5b83580c6101ce3c7de4640ecc7f1ca6e006bf (patch)
treeffda4e0a64616cbb4b4e5d92f87b3f7d5a5fe072 /sound/isa
parentd06ed0c20960f124642ce77cd80056a35ffebe55 (diff)
downloadlinux-cb5b83580c6101ce3c7de4640ecc7f1ca6e006bf.tar.xz
ALSA: ad1816a: constify copied structure
The snd_ad1816a_timer_table structure is only copied into another structure, so make it const. The opportunity for this change was found using Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr> Link: https://lore.kernel.org/r/1577864614-5543-2-git-send-email-Julia.Lawall@inria.fr Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa')
-rw-r--r--sound/isa/ad1816a/ad1816a_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/ad1816a/ad1816a_lib.c b/sound/isa/ad1816a/ad1816a_lib.c
index e1aa5372c483..da6f68b8c248 100644
--- a/sound/isa/ad1816a/ad1816a_lib.c
+++ b/sound/isa/ad1816a/ad1816a_lib.c
@@ -409,7 +409,7 @@ static int snd_ad1816a_timer_stop(struct snd_timer *timer)
return 0;
}
-static struct snd_timer_hardware snd_ad1816a_timer_table = {
+static const struct snd_timer_hardware snd_ad1816a_timer_table = {
.flags = SNDRV_TIMER_HW_AUTO,
.resolution = 10000,
.ticks = 65535,