mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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]>
This commit is contained in:
parent
b17154cfd8
commit
5df29bca12
3 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue