mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
ALSA: dummy: constify dummy_timer_ops structures
The dummy_timer_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
55a8aeef6d
commit
d8c5ed752e
1 changed files with 2 additions and 2 deletions
|
@ -351,7 +351,7 @@ static void dummy_systimer_free(struct snd_pcm_substream *substream)
|
||||||
kfree(substream->runtime->private_data);
|
kfree(substream->runtime->private_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct dummy_timer_ops dummy_systimer_ops = {
|
static const struct dummy_timer_ops dummy_systimer_ops = {
|
||||||
.create = dummy_systimer_create,
|
.create = dummy_systimer_create,
|
||||||
.free = dummy_systimer_free,
|
.free = dummy_systimer_free,
|
||||||
.prepare = dummy_systimer_prepare,
|
.prepare = dummy_systimer_prepare,
|
||||||
|
@ -475,7 +475,7 @@ static void dummy_hrtimer_free(struct snd_pcm_substream *substream)
|
||||||
kfree(dpcm);
|
kfree(dpcm);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct dummy_timer_ops dummy_hrtimer_ops = {
|
static const struct dummy_timer_ops dummy_hrtimer_ops = {
|
||||||
.create = dummy_hrtimer_create,
|
.create = dummy_hrtimer_create,
|
||||||
.free = dummy_hrtimer_free,
|
.free = dummy_hrtimer_free,
|
||||||
.prepare = dummy_hrtimer_prepare,
|
.prepare = dummy_hrtimer_prepare,
|
||||||
|
|
Loading…
Reference in a new issue