media: usb: make i2c_adapter const
Make these const as they are only used in a copy operation. Done using Coccinelle Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Acked-by: Mike Isely <isely@pobox.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
9a5c43b3d2
commit
6843868fd0
@@ -240,7 +240,7 @@ static const struct i2c_algorithm algo = {
|
||||
.functionality = functionality,
|
||||
};
|
||||
|
||||
static struct i2c_adapter adap_template = {
|
||||
static const struct i2c_adapter adap_template = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "stk1160",
|
||||
.algo = &algo,
|
||||
|
Reference in New Issue
Block a user