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.c | |
parent | bde3e2880ff92f9956914afdd19648ccb20f487a (diff) | |
download | talos-op-linux-6b9866c893fc6a51e74df65fd9d9f851a3c2872e.tar.gz talos-op-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.c')
-rw-r--r-- | sound/firewire/bebob/bebob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/firewire/bebob/bebob.c b/sound/firewire/bebob/bebob.c index 0ed5e5ff9346..091290d1f3ea 100644 --- a/sound/firewire/bebob/bebob.c +++ b/sound/firewire/bebob/bebob.c @@ -335,7 +335,7 @@ static void bebob_remove(struct fw_unit *unit) snd_card_free_when_closed(bebob->card); } -static struct snd_bebob_rate_spec normal_rate_spec = { +static const struct snd_bebob_rate_spec normal_rate_spec = { .get = &snd_bebob_stream_get_rate, .set = &snd_bebob_stream_set_rate }; |