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:

committed by
Wolfram Sang

parent
329430ccfc
commit
ae3923a284
@@ -809,7 +809,7 @@ out:
|
||||
* The hardware can handle at most two messages concatenated by a
|
||||
* repeated start via it's internal address feature.
|
||||
*/
|
||||
static struct i2c_adapter_quirks at91_twi_quirks = {
|
||||
static const struct i2c_adapter_quirks at91_twi_quirks = {
|
||||
.flags = I2C_AQ_COMB | I2C_AQ_COMB_WRITE_FIRST | I2C_AQ_COMB_SAME_ADDR,
|
||||
.max_comb_1st_msg_len = 3,
|
||||
};
|
||||
|
Reference in New Issue
Block a user