summaryrefslogtreecommitdiff
path: root/sound/core
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-09-19 14:14:38 +0300
committerTakashi Iwai <tiwai@suse.de>2017-09-19 23:06:11 +0300
commit38405834a6abdf2a644c1384b97d8f0cca769350 (patch)
treebc958be47fd52d9604b412784d5325798b6da1b1 /sound/core
parent621c51be8ed17b2d56847a09aa651087ca1d218a (diff)
downloadlinux-38405834a6abdf2a644c1384b97d8f0cca769350.tar.xz
ALSA: hrtimer: make hrtimer_hw const and __initconst
Make this const as it is only used during a copy operation. Also, make it __initconst as it is only used during the init phase and after this it is not referenced anywhere. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/hrtimer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/hrtimer.c b/sound/core/hrtimer.c
index 1ac0c423903e..5603e49f7bf7 100644
--- a/sound/core/hrtimer.c
+++ b/sound/core/hrtimer.c
@@ -127,7 +127,7 @@ static int snd_hrtimer_stop(struct snd_timer *t)
return 0;
}
-static struct snd_timer_hardware hrtimer_hw = {
+static const struct snd_timer_hardware hrtimer_hw __initconst = {
.flags = SNDRV_TIMER_HW_AUTO | SNDRV_TIMER_HW_TASKLET,
.open = snd_hrtimer_open,
.close = snd_hrtimer_close,