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_proc.c | |
parent | bde3e2880ff92f9956914afdd19648ccb20f487a (diff) | |
download | lwn-6b9866c893fc6a51e74df65fd9d9f851a3c2872e.tar.gz lwn-6b9866c893fc6a51e74df65fd9d9f851a3c2872e.zip |
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_proc.c')
-rw-r--r-- | sound/firewire/bebob/bebob_proc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/firewire/bebob/bebob_proc.c b/sound/firewire/bebob/bebob_proc.c index 301cc6a93945..ec24f96794f5 100644 --- a/sound/firewire/bebob/bebob_proc.c +++ b/sound/firewire/bebob/bebob_proc.c @@ -73,7 +73,7 @@ proc_read_meters(struct snd_info_entry *entry, struct snd_info_buffer *buffer) { struct snd_bebob *bebob = entry->private_data; - struct snd_bebob_meter_spec *spec = bebob->spec->meter; + const struct snd_bebob_meter_spec *spec = bebob->spec->meter; u32 *buf; unsigned int i, c, channels, size; @@ -138,8 +138,8 @@ proc_read_clock(struct snd_info_entry *entry, "SYT-Match", }; struct snd_bebob *bebob = entry->private_data; - struct snd_bebob_rate_spec *rate_spec = bebob->spec->rate; - struct snd_bebob_clock_spec *clk_spec = bebob->spec->clock; + const struct snd_bebob_rate_spec *rate_spec = bebob->spec->rate; + const struct snd_bebob_clock_spec *clk_spec = bebob->spec->clock; enum snd_bebob_clock_type src; unsigned int rate; |