summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/function/f_fs.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-10-16 17:18:41 +0200
committerChristoph Hellwig <hch@lst.de>2017-10-19 16:15:23 +0200
commit973639023444320d4fb5c17af58996463b3392d9 (patch)
treed2a3c610ed318f5f7110f81ee2a5824c0fec8e40 /drivers/usb/gadget/function/f_fs.c
parent761594b741768a425d56dd3eb3f5a04276c7bb73 (diff)
downloadop-kernel-dev-973639023444320d4fb5c17af58996463b3392d9.zip
op-kernel-dev-973639023444320d4fb5c17af58996463b3392d9.tar.gz
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>
Diffstat (limited to 'drivers/usb/gadget/function/f_fs.c')
-rw-r--r--drivers/usb/gadget/function/f_fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c
index 8b34258..5362fc4 100644
--- a/drivers/usb/gadget/function/f_fs.c
+++ b/drivers/usb/gadget/function/f_fs.c
@@ -3385,7 +3385,7 @@ static struct configfs_item_operations ffs_item_ops = {
.release = ffs_attr_release,
};
-static struct config_item_type ffs_func_type = {
+static const struct config_item_type ffs_func_type = {
.ct_item_ops = &ffs_item_ops,
.ct_owner = THIS_MODULE,
};
OpenPOWER on IntegriCloud