media: radio-usb-si4713: make i2c_adapter const
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 19 Aug 2017 10:34:14 +0000 (06:34 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 26 Aug 2017 12:41:29 +0000 (08:41 -0400)
Make this const as it is only used in a copy operation.
Done using Coccinelle

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/radio/si4713/radio-usb-si4713.c

index febc9c1e78ff7e743ca5bac2a627cfb122d32daa..a115db24667bef9d0380fee49d5f98ea9e252235 100644 (file)
@@ -409,7 +409,7 @@ static const struct i2c_algorithm si4713_algo = {
 
 /* This name value shows up in the sysfs filename associated
                with this I2C adapter */
-static struct i2c_adapter si4713_i2c_adapter_template = {
+static const struct i2c_adapter si4713_i2c_adapter_template = {
        .name   = "si4713-i2c",
        .owner  = THIS_MODULE,
        .algo   = &si4713_algo,