diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-21 18:58:37 +0530 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-08-29 22:34:12 +0200 |
commit | a89c22d59eee15fad0ee740308dae94668d12330 (patch) | |
tree | 0c115d2b8013d44b4edb26675fe7594fd012bacc /drivers/i2c/busses/i2c-versatile.c | |
parent | ae3923a284cc696311294022e9b1a49058f07387 (diff) | |
download | op-kernel-dev-a89c22d59eee15fad0ee740308dae94668d12330.zip op-kernel-dev-a89c22d59eee15fad0ee740308dae94668d12330.tar.gz |
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/i2c-versatile.c')
-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 c73d2d2..f1ab2a6 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, |