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>
This commit is contained in:

committed by
Takashi Iwai

parent
bde3e2880f
commit
6b9866c893
@@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user