i2c: busses: make i2c_adapter_quirks const
Make these const as they are only stored as a reference in the quirks field of an i2c_adapter structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:

committad av
Wolfram Sang

förälder
329430ccfc
incheckning
ae3923a284
@@ -433,7 +433,7 @@ static const struct i2c_algorithm mlxcpld_i2c_algo = {
|
||||
.functionality = mlxcpld_i2c_func
|
||||
};
|
||||
|
||||
static struct i2c_adapter_quirks mlxcpld_i2c_quirks = {
|
||||
static const struct i2c_adapter_quirks mlxcpld_i2c_quirks = {
|
||||
.flags = I2C_AQ_COMB_WRITE_THEN_READ,
|
||||
.max_read_len = MLXCPLD_I2C_DATA_REG_SZ - MLXCPLD_I2C_MAX_ADDR_LEN,
|
||||
.max_write_len = MLXCPLD_I2C_DATA_REG_SZ,
|
||||
|
Referens i nytt ärende
Block a user