From: Bhumika Goyal Date: Mon, 21 Aug 2017 13:28:37 +0000 (+0530) Subject: i2c: versatile: Make i2c_algo_bit_data const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a89c22d59eee15fad0ee740308dae94668d12330;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Wolfram Sang --- 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,