diff options
| author | Julia Lawall <[email protected]> | 2015-11-29 18:25:24 +0100 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2015-11-30 11:40:08 +0100 |
| commit | 5df29bca125277eec68fc31c0c0ba41b9a3cb78b (patch) | |
| tree | 4de6fb9bc74db69aa190b3594366fbf327baf460 /include | |
| parent | b17154cfd800b8fdbb34586b9d85e8e824a82833 (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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sound/i2c.h | 2 |
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; |