ALSA: i2c: constify snd_i2c_ops structures

The snd_i2c_ops structures are never modified, so declare them as const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Julia Lawall
2015-11-29 18:25:24 +01:00
committed by Takashi Iwai
parent b17154cfd8
commit 5df29bca12
3 changed files with 3 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ struct snd_i2c_bus {
struct snd_i2c_bit_ops *bit;
void *ops;
} hw_ops; /* lowlevel operations */
struct snd_i2c_ops *ops; /* midlevel operations */
const struct snd_i2c_ops *ops; /* midlevel operations */
unsigned long private_value;
void *private_data;