i2c: busses: make i2c_adapter const
Make these const as they are only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Acked-by: David Daney <david.daney@cavium.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
ad3caf8abc
commit
329430ccfc
|
@ -289,7 +289,7 @@ static const struct i2c_algorithm kempld_i2c_algorithm = {
|
||||||
.functionality = kempld_i2c_func,
|
.functionality = kempld_i2c_func,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct i2c_adapter kempld_i2c_adapter = {
|
static const struct i2c_adapter kempld_i2c_adapter = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.name = "i2c-kempld",
|
.name = "i2c-kempld",
|
||||||
.class = I2C_CLASS_HWMON | I2C_CLASS_SPD,
|
.class = I2C_CLASS_HWMON | I2C_CLASS_SPD,
|
||||||
|
|
|
@ -276,7 +276,7 @@ static const struct i2c_algorithm ocores_algorithm = {
|
||||||
.functionality = ocores_func,
|
.functionality = ocores_func,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct i2c_adapter ocores_adapter = {
|
static const struct i2c_adapter ocores_adapter = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.name = "i2c-ocores",
|
.name = "i2c-ocores",
|
||||||
.class = I2C_CLASS_DEPRECATED,
|
.class = I2C_CLASS_DEPRECATED,
|
||||||
|
|
|
@ -126,7 +126,7 @@ static const struct i2c_algorithm octeon_i2c_algo = {
|
||||||
.functionality = octeon_i2c_functionality,
|
.functionality = octeon_i2c_functionality,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct i2c_adapter octeon_i2c_ops = {
|
static const struct i2c_adapter octeon_i2c_ops = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.name = "OCTEON adapter",
|
.name = "OCTEON adapter",
|
||||||
.algo = &octeon_i2c_algo,
|
.algo = &octeon_i2c_algo,
|
||||||
|
|
|
@ -75,7 +75,7 @@ static const struct i2c_algorithm thunderx_i2c_algo = {
|
||||||
.functionality = thunderx_i2c_functionality,
|
.functionality = thunderx_i2c_functionality,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct i2c_adapter thunderx_i2c_ops = {
|
static const struct i2c_adapter thunderx_i2c_ops = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.name = "ThunderX adapter",
|
.name = "ThunderX adapter",
|
||||||
.algo = &thunderx_i2c_algo,
|
.algo = &thunderx_i2c_algo,
|
||||||
|
|
|
@ -721,7 +721,7 @@ static const struct i2c_algorithm xiic_algorithm = {
|
||||||
.functionality = xiic_func,
|
.functionality = xiic_func,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct i2c_adapter xiic_adapter = {
|
static const struct i2c_adapter xiic_adapter = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.class = I2C_CLASS_DEPRECATED,
|
.class = I2C_CLASS_DEPRECATED,
|
||||||
|
|
Loading…
Reference in New Issue