diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-11-29 18:25:24 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-11-30 11:40:08 +0100 |
commit | 5df29bca125277eec68fc31c0c0ba41b9a3cb78b (patch) | |
tree | 4de6fb9bc74db69aa190b3594366fbf327baf460 /sound/pci | |
parent | ALSA: pcm: constify action_ops structures (diff) | |
download | linux-5df29bca125277eec68fc31c0c0ba41b9a3cb78b.tar.xz linux-5df29bca125277eec68fc31c0c0ba41b9a3cb78b.zip |
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>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/ice1712/delta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ice1712/delta.c b/sound/pci/ice1712/delta.c index 496dbd0ad5db..3bfdc78cbc5f 100644 --- a/sound/pci/ice1712/delta.c +++ b/sound/pci/ice1712/delta.c @@ -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, |