diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-21 16:28:37 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-08-29 23:34:12 +0300 |
commit | a89c22d59eee15fad0ee740308dae94668d12330 (patch) | |
tree | 0c115d2b8013d44b4edb26675fe7594fd012bacc /drivers/i2c/busses | |
parent | ae3923a284cc696311294022e9b1a49058f07387 (diff) | |
download | linux-a89c22d59eee15fad0ee740308dae94668d12330.tar.xz |
i2c: versatile: Make i2c_algo_bit_data const
Make this const as it is only used in a copy operation.
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')
-rw-r--r-- | drivers/i2c/busses/i2c-versatile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-versatile.c b/drivers/i2c/busses/i2c-versatile.c index c73d2d22009e..f1ab2a637ec0 100644 --- a/drivers/i2c/busses/i2c-versatile.c +++ b/drivers/i2c/busses/i2c-versatile.c @@ -55,7 +55,7 @@ static int i2c_versatile_getscl(void *data) return !!(readl(i2c->base + I2C_CONTROL) & SCL); } -static struct i2c_algo_bit_data i2c_versatile_algo = { +static const struct i2c_algo_bit_data i2c_versatile_algo = { .setsda = i2c_versatile_setsda, .setscl = i2c_versatile_setscl, .getsda = i2c_versatile_getsda, |