Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97363902 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Christoph Hellwig
Browse files

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Acked-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 761594b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -786,7 +786,7 @@ static struct configfs_attribute *acm_attrs[] = {
	NULL,
};

static struct config_item_type acm_func_type = {
static const struct config_item_type acm_func_type = {
	.ct_item_ops    = &acm_item_ops,
	.ct_attrs	= acm_attrs,
	.ct_owner       = THIS_MODULE,
+1 −1
Original line number Diff line number Diff line
@@ -845,7 +845,7 @@ static struct configfs_attribute *ecm_attrs[] = {
	NULL,
};

static struct config_item_type ecm_func_type = {
static const struct config_item_type ecm_func_type = {
	.ct_item_ops	= &ecm_item_ops,
	.ct_attrs	= ecm_attrs,
	.ct_owner	= THIS_MODULE,
+1 −1
Original line number Diff line number Diff line
@@ -556,7 +556,7 @@ static struct configfs_attribute *eem_attrs[] = {
	NULL,
};

static struct config_item_type eem_func_type = {
static const struct config_item_type eem_func_type = {
	.ct_item_ops	= &eem_item_ops,
	.ct_attrs	= eem_attrs,
	.ct_owner	= THIS_MODULE,
+1 −1
Original line number Diff line number Diff line
@@ -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,
};
+1 −1
Original line number Diff line number Diff line
@@ -992,7 +992,7 @@ static struct configfs_attribute *hid_attrs[] = {
	NULL,
};

static struct config_item_type hid_func_type = {
static const struct config_item_type hid_func_type = {
	.ct_item_ops	= &hidg_item_ops,
	.ct_attrs	= hid_attrs,
	.ct_owner	= THIS_MODULE,
Loading