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>
                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;
 
 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,
 
        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,