Commit d746cf89 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Mauro Carvalho Chehab

media: usb: make i2c_algorithm const

Make these const as they are only used in a copy operation or
are stored in the algo field of i2c_adapter structure, which is const.
Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Acked-by: default avatarMike Isely <isely@pobox.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 43298e76
...@@ -329,7 +329,7 @@ static u32 au0828_functionality(struct i2c_adapter *adap) ...@@ -329,7 +329,7 @@ static u32 au0828_functionality(struct i2c_adapter *adap)
return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_I2C; return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_I2C;
} }
static struct i2c_algorithm au0828_i2c_algo_template = { static const struct i2c_algorithm au0828_i2c_algo_template = {
.master_xfer = i2c_xfer, .master_xfer = i2c_xfer,
.functionality = au0828_functionality, .functionality = au0828_functionality,
}; };
......
...@@ -514,7 +514,7 @@ static u32 pvr2_i2c_functionality(struct i2c_adapter *adap) ...@@ -514,7 +514,7 @@ static u32 pvr2_i2c_functionality(struct i2c_adapter *adap)
return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_I2C; return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_I2C;
} }
static struct i2c_algorithm pvr2_i2c_algo_template = { static const struct i2c_algorithm pvr2_i2c_algo_template = {
.master_xfer = pvr2_i2c_xfer, .master_xfer = pvr2_i2c_xfer,
.functionality = pvr2_i2c_functionality, .functionality = pvr2_i2c_functionality,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment