diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-28 03:42:09 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-09-23 08:28:03 -0400 |
commit | b8e9b36d2fc463d87f7b595fedf7ed7ae68dba1d (patch) | |
tree | 99385b17cad1f1a5a9b6d800201f263230888011 /drivers/media/pci/ivtv/ivtv-i2c.c | |
parent | 2b83247f3e4a40c767dcbc149b7ad544e2e6c002 (diff) | |
download | linux-stable-b8e9b36d2fc463d87f7b595fedf7ed7ae68dba1d.tar.gz linux-stable-b8e9b36d2fc463d87f7b595fedf7ed7ae68dba1d.tar.bz2 linux-stable-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/ivtv-i2c.c')
-rw-r--r-- | drivers/media/pci/ivtv/ivtv-i2c.c | 2 |
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", }; |