summaryrefslogtreecommitdiffstats
path: root/sound/firewire/bebob/bebob_yamaha.c
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2015-10-11 08:10:55 +0200
committerTakashi Iwai <tiwai@suse.de>2015-10-11 18:12:37 +0200
commit6b9866c893fc6a51e74df65fd9d9f851a3c2872e (patch)
treeb9a2f2263b5c680d4ee48749438538d8a24c7a03 /sound/firewire/bebob/bebob_yamaha.c
parentALSA: firewire-lib: avoid endless loop to transfer MIDI messages at fatal error (diff)
downloadlinux-6b9866c893fc6a51e74df65fd9d9f851a3c2872e.tar.xz
linux-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_yamaha.c')
-rw-r--r--sound/firewire/bebob/bebob_yamaha.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/firewire/bebob/bebob_yamaha.c b/sound/firewire/bebob/bebob_yamaha.c
index 58101702410b..90d4404f77ce 100644
--- a/sound/firewire/bebob/bebob_yamaha.c
+++ b/sound/firewire/bebob/bebob_yamaha.c
@@ -46,16 +46,16 @@ clk_src_get(struct snd_bebob *bebob, unsigned int *id)
return 0;
}
-static struct snd_bebob_clock_spec clock_spec = {
+static const struct snd_bebob_clock_spec clock_spec = {
.num = ARRAY_SIZE(clk_src_types),
.types = clk_src_types,
.get = &clk_src_get,
};
-static struct snd_bebob_rate_spec rate_spec = {
+static const struct snd_bebob_rate_spec rate_spec = {
.get = &snd_bebob_stream_get_rate,
.set = &snd_bebob_stream_set_rate,
};
-struct snd_bebob_spec yamaha_go_spec = {
+const struct snd_bebob_spec yamaha_go_spec = {
.clock = &clock_spec,
.rate = &rate_spec,
.meter = NULL