diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-19 13:34:15 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-26 15:41:58 +0300 |
commit | 6843868fd092406b544064e4db1ca902af13cf48 (patch) | |
tree | e211ed6751864ebcacebbe878f4fd4a91a790185 /drivers/media/usb/pvrusb2 | |
parent | 9a5c43b3d22f17125044f17256a125d2bd13559d (diff) | |
download | linux-6843868fd092406b544064e4db1ca902af13cf48.tar.xz |
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/pvrusb2')
-rw-r--r-- | drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c b/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c index 694dc75ce89b..ff7b4d1d385d 100644 --- a/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c +++ b/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c @@ -519,7 +519,7 @@ static const struct i2c_algorithm pvr2_i2c_algo_template = { .functionality = pvr2_i2c_functionality, }; -static struct i2c_adapter pvr2_i2c_adap_template = { +static const struct i2c_adapter pvr2_i2c_adap_template = { .owner = THIS_MODULE, .class = 0, }; |