@@ -43,7 +43,7 @@ static int regmap_smbus_byte_reg_write(void *context, unsigned int reg,
43
43
return i2c_smbus_write_byte_data (i2c , reg , val );
44
44
}
45
45
46
- static struct regmap_bus regmap_smbus_byte = {
46
+ static const struct regmap_bus regmap_smbus_byte = {
47
47
.reg_write = regmap_smbus_byte_reg_write ,
48
48
.reg_read = regmap_smbus_byte_reg_read ,
49
49
};
@@ -79,7 +79,7 @@ static int regmap_smbus_word_reg_write(void *context, unsigned int reg,
79
79
return i2c_smbus_write_word_data (i2c , reg , val );
80
80
}
81
81
82
- static struct regmap_bus regmap_smbus_word = {
82
+ static const struct regmap_bus regmap_smbus_word = {
83
83
.reg_write = regmap_smbus_word_reg_write ,
84
84
.reg_read = regmap_smbus_word_reg_read ,
85
85
};
@@ -115,7 +115,7 @@ static int regmap_smbus_word_write_swapped(void *context, unsigned int reg,
115
115
return i2c_smbus_write_word_swapped (i2c , reg , val );
116
116
}
117
117
118
- static struct regmap_bus regmap_smbus_word_swapped = {
118
+ static const struct regmap_bus regmap_smbus_word_swapped = {
119
119
.reg_write = regmap_smbus_word_write_swapped ,
120
120
.reg_read = regmap_smbus_word_read_swapped ,
121
121
};
@@ -197,7 +197,7 @@ static int regmap_i2c_read(void *context,
197
197
return - EIO ;
198
198
}
199
199
200
- static struct regmap_bus regmap_i2c = {
200
+ static const struct regmap_bus regmap_i2c = {
201
201
.write = regmap_i2c_write ,
202
202
.gather_write = regmap_i2c_gather_write ,
203
203
.read = regmap_i2c_read ,
@@ -239,7 +239,7 @@ static int regmap_i2c_smbus_i2c_read(void *context, const void *reg,
239
239
return - EIO ;
240
240
}
241
241
242
- static struct regmap_bus regmap_i2c_smbus_i2c_block = {
242
+ static const struct regmap_bus regmap_i2c_smbus_i2c_block = {
243
243
.write = regmap_i2c_smbus_i2c_write ,
244
244
.read = regmap_i2c_smbus_i2c_read ,
245
245
.max_raw_read = I2C_SMBUS_BLOCK_MAX ,
0 commit comments