Commit b8e9b36d authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Mauro Carvalho Chehab

media: pci: make i2c_client const

Make these const as they are only used in a copy operation.
Done using Coccinelle.
Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarHans Verkuil <hansverk@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 2b83247f
...@@ -270,7 +270,7 @@ static const struct i2c_adapter cx23885_i2c_adap_template = { ...@@ -270,7 +270,7 @@ static const struct i2c_adapter cx23885_i2c_adap_template = {
.algo = &cx23885_i2c_algo_template, .algo = &cx23885_i2c_algo_template,
}; };
static struct i2c_client cx23885_i2c_client_template = { static const struct i2c_client cx23885_i2c_client_template = {
.name = "cx23885 internal", .name = "cx23885 internal",
}; };
......
...@@ -291,7 +291,7 @@ static const struct i2c_adapter cx25821_i2c_adap_template = { ...@@ -291,7 +291,7 @@ static const struct i2c_adapter cx25821_i2c_adap_template = {
.algo = &cx25821_i2c_algo_template, .algo = &cx25821_i2c_algo_template,
}; };
static struct i2c_client cx25821_i2c_client_template = { static const struct i2c_client cx25821_i2c_client_template = {
.name = "cx25821 internal", .name = "cx25821 internal",
}; };
......
...@@ -700,7 +700,7 @@ static const struct i2c_algo_bit_data ivtv_i2c_algo_template = { ...@@ -700,7 +700,7 @@ static const struct i2c_algo_bit_data ivtv_i2c_algo_template = {
.timeout = IVTV_ALGO_BIT_TIMEOUT * HZ, /* jiffies */ .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", .name = "ivtv internal",
}; };
......
...@@ -345,7 +345,7 @@ static const struct i2c_adapter saa7134_adap_template = { ...@@ -345,7 +345,7 @@ static const struct i2c_adapter saa7134_adap_template = {
.algo = &saa7134_algo, .algo = &saa7134_algo,
}; };
static struct i2c_client saa7134_client_template = { static const struct i2c_client saa7134_client_template = {
.name = "saa7134 internal", .name = "saa7134 internal",
}; };
......
...@@ -84,7 +84,7 @@ static const struct i2c_adapter saa7164_i2c_adap_template = { ...@@ -84,7 +84,7 @@ static const struct i2c_adapter saa7164_i2c_adap_template = {
.algo = &saa7164_i2c_algo_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", .name = "saa7164 internal",
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment