diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-21 17:42:04 +0530 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-08-29 22:32:47 +0200 |
commit | ae3923a284cc696311294022e9b1a49058f07387 (patch) | |
tree | df2e5df6f8176a6a24c020920994239cfbfa674b /drivers/i2c/busses/i2c-at91.c | |
parent | 329430ccfc9ff864315974cf2fe7a35b00be5e9f (diff) |
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>
Diffstat (limited to 'drivers/i2c/busses/i2c-at91.c')
-rw-r--r-- | drivers/i2c/busses/i2c-at91.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c index 38dd61d621df..bfd1fdff64a9 100644 --- a/drivers/i2c/busses/i2c-at91.c +++ b/drivers/i2c/busses/i2c-at91.c @@ -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, }; |