diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-19 12:34:15 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-26 14:41:58 +0200 |
commit | 6843868fd092406b544064e4db1ca902af13cf48 (patch) | |
tree | e211ed6751864ebcacebbe878f4fd4a91a790185 /drivers/media/usb/hdpvr/hdpvr-i2c.c | |
parent | media: radio-usb-si4713: make i2c_adapter const (diff) | |
download | linux-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/hdpvr/hdpvr-i2c.c')
-rw-r--r-- | drivers/media/usb/hdpvr/hdpvr-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/hdpvr/hdpvr-i2c.c b/drivers/media/usb/hdpvr/hdpvr-i2c.c index b9074b978ae3..1db49ed5eaf1 100644 --- a/drivers/media/usb/hdpvr/hdpvr-i2c.c +++ b/drivers/media/usb/hdpvr/hdpvr-i2c.c @@ -185,7 +185,7 @@ static const struct i2c_algorithm hdpvr_algo = { .functionality = hdpvr_functionality, }; -static struct i2c_adapter hdpvr_i2c_adapter_template = { +static const struct i2c_adapter hdpvr_i2c_adapter_template = { .name = "Hauppage HD PVR I2C", .owner = THIS_MODULE, .algo = &hdpvr_algo, |