aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/saa7164
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-28 03:42:09 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-09-23 08:28:03 -0400
commitb8e9b36d2fc463d87f7b595fedf7ed7ae68dba1d (patch)
tree99385b17cad1f1a5a9b6d800201f263230888011 /drivers/media/pci/saa7164
parentmedia: usb: make i2c_client const (diff)
downloadlinux-dev-b8e9b36d2fc463d87f7b595fedf7ed7ae68dba1d.tar.xz
linux-dev-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/saa7164')
-rw-r--r--drivers/media/pci/saa7164/saa7164-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/saa7164/saa7164-i2c.c b/drivers/media/pci/saa7164/saa7164-i2c.c
index 4bcde7c79dc3..6d13cbb9d010 100644
--- a/drivers/media/pci/saa7164/saa7164-i2c.c
+++ b/drivers/media/pci/saa7164/saa7164-i2c.c
@@ -84,7 +84,7 @@ static const struct i2c_adapter saa7164_i2c_adap_template = {
.algo = &saa7164_i2c_algo_template,
};
-static struct i2c_client saa7164_i2c_client_template = {
+static const struct i2c_client saa7164_i2c_client_template = {
.name = "saa7164 internal",
};