summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/stk1160
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-19 12:34:15 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-26 14:41:58 +0200
commit6843868fd092406b544064e4db1ca902af13cf48 (patch)
treee211ed6751864ebcacebbe878f4fd4a91a790185 /drivers/media/usb/stk1160
parentmedia: radio-usb-si4713: make i2c_adapter const (diff)
downloadlinux-6843868fd092406b544064e4db1ca902af13cf48.tar.xz
linux-6843868fd092406b544064e4db1ca902af13cf48.zip
media: usb: make i2c_adapter const
Make these const as they are only used in a copy operation. Done using Coccinelle Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Acked-by: Mike Isely <isely@pobox.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/stk1160')
-rw-r--r--drivers/media/usb/stk1160/stk1160-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/stk1160/stk1160-i2c.c b/drivers/media/usb/stk1160/stk1160-i2c.c
index 3f2517be02bb..2c70173e3c82 100644
--- a/drivers/media/usb/stk1160/stk1160-i2c.c
+++ b/drivers/media/usb/stk1160/stk1160-i2c.c
@@ -240,7 +240,7 @@ static const struct i2c_algorithm algo = {
.functionality = functionality,
};
-static struct i2c_adapter adap_template = {
+static const struct i2c_adapter adap_template = {
.owner = THIS_MODULE,
.name = "stk1160",
.algo = &algo,