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:

committed by
Takashi Iwai

parent
b17154cfd8
commit
5df29bca12
@@ -174,7 +174,7 @@ static int ap_cs8427_probeaddr(struct snd_i2c_bus *bus, unsigned short addr)
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
static struct snd_i2c_ops ap_cs8427_i2c_ops = {
|
||||
static const struct snd_i2c_ops ap_cs8427_i2c_ops = {
|
||||
.sendbytes = ap_cs8427_sendbytes,
|
||||
.readbytes = ap_cs8427_readbytes,
|
||||
.probeaddr = ap_cs8427_probeaddr,
|
||||
|
Reference in New Issue
Block a user