summaryrefslogtreecommitdiffstats
path: root/sound/i2c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-11-29 18:25:24 +0100
committerTakashi Iwai <tiwai@suse.de>2015-11-30 11:40:08 +0100
commit5df29bca125277eec68fc31c0c0ba41b9a3cb78b (patch)
tree4de6fb9bc74db69aa190b3594366fbf327baf460 /sound/i2c
parentb17154cfd800b8fdbb34586b9d85e8e824a82833 (diff)
downloadlinux-stable-5df29bca125277eec68fc31c0c0ba41b9a3cb78b.tar.gz
linux-stable-5df29bca125277eec68fc31c0c0ba41b9a3cb78b.tar.bz2
linux-stable-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/i2c')
-rw-r--r--sound/i2c/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/i2c/i2c.c b/sound/i2c/i2c.c
index 4677037f0c8e..ef2a9afe9e19 100644
--- a/sound/i2c/i2c.c
+++ b/sound/i2c/i2c.c
@@ -39,7 +39,7 @@ static int snd_i2c_bit_readbytes(struct snd_i2c_device *device,
static int snd_i2c_bit_probeaddr(struct snd_i2c_bus *bus,
unsigned short addr);
-static struct snd_i2c_ops snd_i2c_bit_ops = {
+static const struct snd_i2c_ops snd_i2c_bit_ops = {
.sendbytes = snd_i2c_bit_sendbytes,
.readbytes = snd_i2c_bit_readbytes,
.probeaddr = snd_i2c_bit_probeaddr,