diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-12-30 12:28:49 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-12-30 22:49:42 +0100 |
commit | d8c5ed752e5b9aabad9ea8b53272b6abb4fa5235 (patch) | |
tree | a6ed930f26ef9a13ca4f213e33a3603c4cfdf3fc /sound/drivers | |
parent | 55a8aeef6dbdb90f5ee97801b86c73ffd93e8afd (diff) | |
download | lwn-d8c5ed752e5b9aabad9ea8b53272b6abb4fa5235.tar.gz lwn-d8c5ed752e5b9aabad9ea8b53272b6abb4fa5235.zip |
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>
Diffstat (limited to 'sound/drivers')
-rw-r--r-- | sound/drivers/dummy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/drivers/dummy.c b/sound/drivers/dummy.c index 016e451ed506..75b74850c005 100644 --- a/sound/drivers/dummy.c +++ b/sound/drivers/dummy.c @@ -351,7 +351,7 @@ static void dummy_systimer_free(struct snd_pcm_substream *substream) 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, .free = dummy_systimer_free, .prepare = dummy_systimer_prepare, @@ -475,7 +475,7 @@ static void dummy_hrtimer_free(struct snd_pcm_substream *substream) kfree(dpcm); } -static struct dummy_timer_ops dummy_hrtimer_ops = { +static const struct dummy_timer_ops dummy_hrtimer_ops = { .create = dummy_hrtimer_create, .free = dummy_hrtimer_free, .prepare = dummy_hrtimer_prepare, |