diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-19 06:34:15 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-26 08:41:58 -0400 |
commit | 6843868fd092406b544064e4db1ca902af13cf48 (patch) | |
tree | e211ed6751864ebcacebbe878f4fd4a91a790185 /drivers/media/usb/em28xx | |
parent | 9a5c43b3d22f17125044f17256a125d2bd13559d (diff) | |
download | op-kernel-dev-6843868fd092406b544064e4db1ca902af13cf48.zip op-kernel-dev-6843868fd092406b544064e4db1ca902af13cf48.tar.gz |
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/em28xx')
-rw-r--r-- | drivers/media/usb/em28xx/em28xx-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-i2c.c b/drivers/media/usb/em28xx/em28xx-i2c.c index 60b195c..66c5012 100644 --- a/drivers/media/usb/em28xx/em28xx-i2c.c +++ b/drivers/media/usb/em28xx/em28xx-i2c.c @@ -876,7 +876,7 @@ static const struct i2c_algorithm em28xx_algo = { .functionality = functionality, }; -static struct i2c_adapter em28xx_adap_template = { +static const struct i2c_adapter em28xx_adap_template = { .owner = THIS_MODULE, .name = "em28xx", .algo = &em28xx_algo, |