pci: make i2c_client const
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- drivers/media/pci/cx23885/cx23885-i2c.c | 2 +- drivers/media/pci/cx25821/cx25821-i2c.c | 2 +- drivers/media/pci/ivtv/ivtv-i2c.c | 2 +- drivers/media/pci/saa7134/saa7134-i2c.c | 2 +- drivers/media/pci/saa7164/saa7164-i2c.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
drivers/media/pci/cx23885/cx23885-i2c.c +1 -1
@@ -270,7 +270,7 @@ static u32 cx23885_functionality(struct i2c_adapter *adap) .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" , };
drivers/media/pci/cx25821/cx25821-i2c.c +1 -1
@@ -291,7 +291,7 @@ static u32 cx25821_functionality(struct i2c_adapter *adap) .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" , };
drivers/media/pci/ivtv/ivtv-i2c.c +1 -1
@@ -700,7 +700,7 @@ static int ivtv_getsda_old(void *data) .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" , };
drivers/media/pci/saa7134/saa7134-i2c.c +1 -1
@@ -345,7 +345,7 @@ static u32 functionality(struct i2c_adapter *adap) .algo = &saa7134_algo, }; -static struct i2c_client saa7134_client_template = { +static const struct i2c_client saa7134_client_template = { .name ="saa7134 internal" , };
drivers/media/pci/saa7164/saa7164-i2c.c +1 -1
@@ -84,7 +84,7 @@ static u32 saa7164_functionality(struct i2c_adapter *adap) .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" , };
Signature · 1 line
1.9.1