usb: gadget: make config_item_type structures const
Make these structures const as they are only passed to the const
argument of the functions config_{group/item}_init_type_name.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
committed by
Christoph Hellwig
parent
761594b741
commit
9736390234
@@ -3140,7 +3140,7 @@ static struct configfs_attribute *fsg_lun_attrs[] = {
|
||||
NULL,
|
||||
};
|
||||
|
||||
static struct config_item_type fsg_lun_type = {
|
||||
static const struct config_item_type fsg_lun_type = {
|
||||
.ct_item_ops = &fsg_lun_item_ops,
|
||||
.ct_attrs = fsg_lun_attrs,
|
||||
.ct_owner = THIS_MODULE,
|
||||
@@ -3331,7 +3331,7 @@ static struct configfs_group_operations fsg_group_ops = {
|
||||
.drop_item = fsg_lun_drop,
|
||||
};
|
||||
|
||||
static struct config_item_type fsg_func_type = {
|
||||
static const struct config_item_type fsg_func_type = {
|
||||
.ct_item_ops = &fsg_item_ops,
|
||||
.ct_group_ops = &fsg_group_ops,
|
||||
.ct_attrs = fsg_attrs,
|
||||
|
||||
Reference in New Issue
Block a user