Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a89c22d5 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Wolfram Sang
Browse files

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent ae3923a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -55,7 +55,7 @@ static int i2c_versatile_getscl(void *data)
	return !!(readl(i2c->base + I2C_CONTROL) & SCL);
	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,
	.setsda	= i2c_versatile_setsda,
	.setscl = i2c_versatile_setscl,
	.setscl = i2c_versatile_setscl,
	.getsda	= i2c_versatile_getsda,
	.getsda	= i2c_versatile_getsda,