summaryrefslogtreecommitdiff
path: root/include/sound
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 /include/sound
parentb17154cfd800b8fdbb34586b9d85e8e824a82833 (diff)
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 'include/sound')
-rw-r--r--include/sound/i2c.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/i2c.h b/include/sound/i2c.h
index d125ff8c85e8..835254de2039 100644
--- a/include/sound/i2c.h
+++ b/include/sound/i2c.h
@@ -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;