diff options
author | Julia Lawall <julia.lawall@lip6.fr> | 2015-10-11 08:10:55 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-10-11 18:12:37 +0200 |
commit | 6b9866c893fc6a51e74df65fd9d9f851a3c2872e (patch) | |
tree | b9a2f2263b5c680d4ee48749438538d8a24c7a03 /sound/firewire/bebob/bebob_pcm.c | |
parent | bde3e2880ff92f9956914afdd19648ccb20f487a (diff) | |
download | linux-6b9866c893fc6a51e74df65fd9d9f851a3c2872e.tar.bz2 |
ALSA: bebob: constify various snd_bebob structures
The structures of type snd_bebob_clock_spec, snd_bebob_rate_spec,
snd_bebob_meter_spec, and snd_bebob_spec are never modified after they are
initialized. Make them all const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Tested-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/bebob/bebob_pcm.c')
-rw-r--r-- | sound/firewire/bebob/bebob_pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/firewire/bebob/bebob_pcm.c b/sound/firewire/bebob/bebob_pcm.c index 2fdc1f10a2c7..ef224d6f5c24 100644 --- a/sound/firewire/bebob/bebob_pcm.c +++ b/sound/firewire/bebob/bebob_pcm.c @@ -155,7 +155,7 @@ static int pcm_open(struct snd_pcm_substream *substream) { struct snd_bebob *bebob = substream->private_data; - struct snd_bebob_rate_spec *spec = bebob->spec->rate; + const struct snd_bebob_rate_spec *spec = bebob->spec->rate; unsigned int sampling_rate; enum snd_bebob_clock_type src; int err; |