summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/ivtv
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-28 09:42:09 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-09-23 14:28:03 +0200
commitb8e9b36d2fc463d87f7b595fedf7ed7ae68dba1d (patch)
tree99385b17cad1f1a5a9b6d800201f263230888011 /drivers/media/pci/ivtv
parentmedia: usb: make i2c_client const (diff)
downloadlinux-b8e9b36d2fc463d87f7b595fedf7ed7ae68dba1d.tar.xz
linux-b8e9b36d2fc463d87f7b595fedf7ed7ae68dba1d.zip
media: pci: make i2c_client 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 <hansverk@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci/ivtv')
-rw-r--r--drivers/media/pci/ivtv/ivtv-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/ivtv/ivtv-i2c.c b/drivers/media/pci/ivtv/ivtv-i2c.c
index 5a35e366f4c0..893962ac85de 100644
--- a/drivers/media/pci/ivtv/ivtv-i2c.c
+++ b/drivers/media/pci/ivtv/ivtv-i2c.c
@@ -700,7 +700,7 @@ static const struct i2c_algo_bit_data ivtv_i2c_algo_template = {
.timeout = IVTV_ALGO_BIT_TIMEOUT * HZ, /* jiffies */
};
-static struct i2c_client ivtv_i2c_client_template = {
+static const struct i2c_client ivtv_i2c_client_template = {
.name = "ivtv internal",
};