summaryrefslogtreecommitdiff
path: root/drivers/media/usb/pvrusb2
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-18 19:06:58 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-26 15:40:01 +0300
commitd746cf89b4b7e60f5b7239b3ef8e8af01d11f604 (patch)
tree537c87676c2f5835b91d85e1e68b89aaeb2c1e1d /drivers/media/usb/pvrusb2
parent43298e768cfc2b9c810e55425e948bf6f767cc75 (diff)
downloadlinux-d746cf89b4b7e60f5b7239b3ef8e8af01d11f604.tar.xz
media: usb: make i2c_algorithm const
Make these const as they are only used in a copy operation or are stored in the algo field of i2c_adapter structure, which is const. 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.c2
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 e3c8f9414e45..694dc75ce89b 100644
--- a/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c
+++ b/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c
@@ -514,7 +514,7 @@ static u32 pvr2_i2c_functionality(struct i2c_adapter *adap)
return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_I2C;
}
-static struct i2c_algorithm pvr2_i2c_algo_template = {
+static const struct i2c_algorithm pvr2_i2c_algo_template = {
.master_xfer = pvr2_i2c_xfer,
.functionality = pvr2_i2c_functionality,
};