summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/netup_unidvb
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-19 06:34:13 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-26 08:41:15 -0400
commite5fffebe6d39cf8ad0a7628822d9c3a519523135 (patch)
treee3fdacb582087a6309c1735bb698ae247c380c7e /drivers/media/pci/netup_unidvb
parentea9b0f31c1acd35b6905dbfa7dd19c01592470f6 (diff)
media: pci: 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> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci/netup_unidvb')
-rw-r--r--drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c b/drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c
index b49e4f9788e8..b13e319d24b7 100644
--- a/drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c
+++ b/drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c
@@ -300,7 +300,7 @@ static const struct i2c_algorithm netup_i2c_algorithm = {
.functionality = netup_i2c_func,
};
-static struct i2c_adapter netup_i2c_adapter = {
+static const struct i2c_adapter netup_i2c_adapter = {
.owner = THIS_MODULE,
.name = NETUP_UNIDVB_NAME,
.class = I2C_CLASS_HWMON | I2C_CLASS_SPD,