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:
Bhumika Goyal 2017-10-16 17:18:41 +02:00 committed by Christoph Hellwig
parent 761594b741
commit 9736390234
21 changed files with 46 additions and 46 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,
};

View File

@ -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,

View File

@ -556,7 +556,7 @@ static struct configfs_attribute *lb_attrs[] = {
NULL,
};
static struct config_item_type lb_func_type = {
static const struct config_item_type lb_func_type = {
.ct_item_ops = &lb_item_ops,
.ct_attrs = lb_attrs,
.ct_owner = THIS_MODULE,

View File

@ -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,

View File

@ -1189,7 +1189,7 @@ static struct configfs_attribute *midi_attrs[] = {
NULL,
};
static struct config_item_type midi_func_type = {
static const struct config_item_type midi_func_type = {
.ct_item_ops = &midi_item_ops,
.ct_attrs = midi_attrs,
.ct_owner = THIS_MODULE,

View File

@ -1568,7 +1568,7 @@ static struct configfs_attribute *ncm_attrs[] = {
NULL,
};
static struct config_item_type ncm_func_type = {
static const struct config_item_type ncm_func_type = {
.ct_item_ops = &ncm_item_ops,
.ct_attrs = ncm_attrs,
.ct_owner = THIS_MODULE,

View File

@ -411,7 +411,7 @@ static struct configfs_attribute *acm_attrs[] = {
NULL,
};
static struct config_item_type obex_func_type = {
static const struct config_item_type obex_func_type = {
.ct_item_ops = &obex_item_ops,
.ct_attrs = acm_attrs,
.ct_owner = THIS_MODULE,

View File

@ -599,7 +599,7 @@ static struct configfs_attribute *phonet_attrs[] = {
NULL,
};
static struct config_item_type phonet_func_type = {
static const struct config_item_type phonet_func_type = {
.ct_item_ops = &phonet_item_ops,
.ct_attrs = phonet_attrs,
.ct_owner = THIS_MODULE,

View File

@ -1261,7 +1261,7 @@ static struct configfs_attribute *printer_attrs[] = {
NULL,
};
static struct config_item_type printer_func_type = {
static const struct config_item_type printer_func_type = {
.ct_item_ops = &printer_item_ops,
.ct_attrs = printer_attrs,
.ct_owner = THIS_MODULE,

View File

@ -890,7 +890,7 @@ static struct configfs_attribute *rndis_attrs[] = {
NULL,
};
static struct config_item_type rndis_func_type = {
static const struct config_item_type rndis_func_type = {
.ct_item_ops = &rndis_item_ops,
.ct_attrs = rndis_attrs,
.ct_owner = THIS_MODULE,

View File

@ -281,7 +281,7 @@ static struct configfs_attribute *acm_attrs[] = {
NULL,
};
static struct config_item_type serial_func_type = {
static const struct config_item_type serial_func_type = {
.ct_item_ops = &serial_item_ops,
.ct_attrs = acm_attrs,
.ct_owner = THIS_MODULE,

View File

@ -1230,7 +1230,7 @@ static struct configfs_attribute *ss_attrs[] = {
NULL,
};
static struct config_item_type ss_func_type = {
static const struct config_item_type ss_func_type = {
.ct_item_ops = &ss_item_ops,
.ct_attrs = ss_attrs,
.ct_owner = THIS_MODULE,

View File

@ -412,7 +412,7 @@ static struct configfs_attribute *gether_attrs[] = {
NULL,
};
static struct config_item_type gether_func_type = {
static const struct config_item_type gether_func_type = {
.ct_item_ops = &gether_item_ops,
.ct_attrs = gether_attrs,
.ct_owner = THIS_MODULE,

View File

@ -2166,7 +2166,7 @@ static struct configfs_item_operations tcm_item_ops = {
.release = tcm_attr_release,
};
static struct config_item_type tcm_func_type = {
static const struct config_item_type tcm_func_type = {
.ct_item_ops = &tcm_item_ops,
.ct_owner = THIS_MODULE,
};

View File

@ -709,7 +709,7 @@ static struct configfs_attribute *f_uac1_attrs[] = {
NULL,
};
static struct config_item_type f_uac1_func_type = {
static const struct config_item_type f_uac1_func_type = {
.ct_item_ops = &f_uac1_item_ops,
.ct_attrs = f_uac1_attrs,
.ct_owner = THIS_MODULE,

View File

@ -921,7 +921,7 @@ static struct configfs_attribute *f_uac1_attrs[] = {
NULL,
};
static struct config_item_type f_uac1_func_type = {
static const struct config_item_type f_uac1_func_type = {
.ct_item_ops = &f_uac1_item_ops,
.ct_attrs = f_uac1_attrs,
.ct_owner = THIS_MODULE,

View File

@ -921,7 +921,7 @@ static struct configfs_attribute *f_uac2_attrs[] = {
NULL,
};
static struct config_item_type f_uac2_func_type = {
static const struct config_item_type f_uac2_func_type = {
.ct_item_ops = &f_uac2_item_ops,
.ct_attrs = f_uac2_attrs,
.ct_owner = THIS_MODULE,

View File

@ -127,7 +127,7 @@ static struct configfs_attribute *uvcg_control_header_attrs[] = {
NULL,
};
static struct config_item_type uvcg_control_header_type = {
static const struct config_item_type uvcg_control_header_type = {
.ct_attrs = uvcg_control_header_attrs,
.ct_owner = THIS_MODULE,
};
@ -170,7 +170,7 @@ static struct configfs_group_operations uvcg_control_header_grp_ops = {
.drop_item = uvcg_control_header_drop,
};
static struct config_item_type uvcg_control_header_grp_type = {
static const struct config_item_type uvcg_control_header_grp_type = {
.ct_group_ops = &uvcg_control_header_grp_ops,
.ct_owner = THIS_MODULE,
};
@ -265,7 +265,7 @@ static struct configfs_attribute *uvcg_default_processing_attrs[] = {
NULL,
};
static struct config_item_type uvcg_default_processing_type = {
static const struct config_item_type uvcg_default_processing_type = {
.ct_attrs = uvcg_default_processing_attrs,
.ct_owner = THIS_MODULE,
};
@ -277,7 +277,7 @@ static struct uvcg_processing_grp {
struct config_group group;
} uvcg_processing_grp;
static struct config_item_type uvcg_processing_grp_type = {
static const struct config_item_type uvcg_processing_grp_type = {
.ct_owner = THIS_MODULE,
};
@ -382,7 +382,7 @@ static struct configfs_attribute *uvcg_default_camera_attrs[] = {
NULL,
};
static struct config_item_type uvcg_default_camera_type = {
static const struct config_item_type uvcg_default_camera_type = {
.ct_attrs = uvcg_default_camera_attrs,
.ct_owner = THIS_MODULE,
};
@ -394,7 +394,7 @@ static struct uvcg_camera_grp {
struct config_group group;
} uvcg_camera_grp;
static struct config_item_type uvcg_camera_grp_type = {
static const struct config_item_type uvcg_camera_grp_type = {
.ct_owner = THIS_MODULE,
};
@ -460,7 +460,7 @@ static struct configfs_attribute *uvcg_default_output_attrs[] = {
NULL,
};
static struct config_item_type uvcg_default_output_type = {
static const struct config_item_type uvcg_default_output_type = {
.ct_attrs = uvcg_default_output_attrs,
.ct_owner = THIS_MODULE,
};
@ -472,7 +472,7 @@ static struct uvcg_output_grp {
struct config_group group;
} uvcg_output_grp;
static struct config_item_type uvcg_output_grp_type = {
static const struct config_item_type uvcg_output_grp_type = {
.ct_owner = THIS_MODULE,
};
@ -481,7 +481,7 @@ static struct uvcg_terminal_grp {
struct config_group group;
} uvcg_terminal_grp;
static struct config_item_type uvcg_terminal_grp_type = {
static const struct config_item_type uvcg_terminal_grp_type = {
.ct_owner = THIS_MODULE,
};
@ -586,7 +586,7 @@ static struct configfs_item_operations uvcg_control_class_item_ops = {
.drop_link = uvcg_control_class_drop_link,
};
static struct config_item_type uvcg_control_class_type = {
static const struct config_item_type uvcg_control_class_type = {
.ct_item_ops = &uvcg_control_class_item_ops,
.ct_owner = THIS_MODULE,
};
@ -596,7 +596,7 @@ static struct uvcg_control_class_grp {
struct config_group group;
} uvcg_control_class_grp;
static struct config_item_type uvcg_control_class_grp_type = {
static const struct config_item_type uvcg_control_class_grp_type = {
.ct_owner = THIS_MODULE,
};
@ -605,7 +605,7 @@ static struct uvcg_control_grp {
struct config_group group;
} uvcg_control_grp;
static struct config_item_type uvcg_control_grp_type = {
static const struct config_item_type uvcg_control_grp_type = {
.ct_owner = THIS_MODULE,
};
@ -857,7 +857,7 @@ static struct configfs_attribute *uvcg_streaming_header_attrs[] = {
NULL,
};
static struct config_item_type uvcg_streaming_header_type = {
static const struct config_item_type uvcg_streaming_header_type = {
.ct_item_ops = &uvcg_streaming_header_item_ops,
.ct_attrs = uvcg_streaming_header_attrs,
.ct_owner = THIS_MODULE,
@ -901,7 +901,7 @@ static struct configfs_group_operations uvcg_streaming_header_grp_ops = {
.drop_item = uvcg_streaming_header_drop,
};
static struct config_item_type uvcg_streaming_header_grp_type = {
static const struct config_item_type uvcg_streaming_header_grp_type = {
.ct_group_ops = &uvcg_streaming_header_grp_ops,
.ct_owner = THIS_MODULE,
};
@ -1150,7 +1150,7 @@ static struct configfs_attribute *uvcg_frame_attrs[] = {
NULL,
};
static struct config_item_type uvcg_frame_type = {
static const struct config_item_type uvcg_frame_type = {
.ct_attrs = uvcg_frame_attrs,
.ct_owner = THIS_MODULE,
};
@ -1419,7 +1419,7 @@ static struct configfs_attribute *uvcg_uncompressed_attrs[] = {
NULL,
};
static struct config_item_type uvcg_uncompressed_type = {
static const struct config_item_type uvcg_uncompressed_type = {
.ct_group_ops = &uvcg_uncompressed_group_ops,
.ct_attrs = uvcg_uncompressed_attrs,
.ct_owner = THIS_MODULE,
@ -1469,7 +1469,7 @@ static struct configfs_group_operations uvcg_uncompressed_grp_ops = {
.drop_item = uvcg_uncompressed_drop,
};
static struct config_item_type uvcg_uncompressed_grp_type = {
static const struct config_item_type uvcg_uncompressed_grp_type = {
.ct_group_ops = &uvcg_uncompressed_grp_ops,
.ct_owner = THIS_MODULE,
};
@ -1619,7 +1619,7 @@ static struct configfs_attribute *uvcg_mjpeg_attrs[] = {
NULL,
};
static struct config_item_type uvcg_mjpeg_type = {
static const struct config_item_type uvcg_mjpeg_type = {
.ct_group_ops = &uvcg_mjpeg_group_ops,
.ct_attrs = uvcg_mjpeg_attrs,
.ct_owner = THIS_MODULE,
@ -1663,7 +1663,7 @@ static struct configfs_group_operations uvcg_mjpeg_grp_ops = {
.drop_item = uvcg_mjpeg_drop,
};
static struct config_item_type uvcg_mjpeg_grp_type = {
static const struct config_item_type uvcg_mjpeg_grp_type = {
.ct_group_ops = &uvcg_mjpeg_grp_ops,
.ct_owner = THIS_MODULE,
};
@ -1728,7 +1728,7 @@ static struct configfs_attribute *uvcg_default_color_matching_attrs[] = {
NULL,
};
static struct config_item_type uvcg_default_color_matching_type = {
static const struct config_item_type uvcg_default_color_matching_type = {
.ct_attrs = uvcg_default_color_matching_attrs,
.ct_owner = THIS_MODULE,
};
@ -1740,7 +1740,7 @@ static struct uvcg_color_matching_grp {
struct config_group group;
} uvcg_color_matching_grp;
static struct config_item_type uvcg_color_matching_grp_type = {
static const struct config_item_type uvcg_color_matching_grp_type = {
.ct_owner = THIS_MODULE,
};
@ -2085,7 +2085,7 @@ static struct configfs_item_operations uvcg_streaming_class_item_ops = {
.drop_link = uvcg_streaming_class_drop_link,
};
static struct config_item_type uvcg_streaming_class_type = {
static const struct config_item_type uvcg_streaming_class_type = {
.ct_item_ops = &uvcg_streaming_class_item_ops,
.ct_owner = THIS_MODULE,
};
@ -2095,7 +2095,7 @@ static struct uvcg_streaming_class_grp {
struct config_group group;
} uvcg_streaming_class_grp;
static struct config_item_type uvcg_streaming_class_grp_type = {
static const struct config_item_type uvcg_streaming_class_grp_type = {
.ct_owner = THIS_MODULE,
};
@ -2104,7 +2104,7 @@ static struct uvcg_streaming_grp {
struct config_group group;
} uvcg_streaming_grp;
static struct config_item_type uvcg_streaming_grp_type = {
static const struct config_item_type uvcg_streaming_grp_type = {
.ct_owner = THIS_MODULE,
};
@ -2190,7 +2190,7 @@ static struct configfs_attribute *uvc_attrs[] = {
NULL,
};
static struct config_item_type uvc_func_type = {
static const struct config_item_type uvc_func_type = {
.ct_item_ops = &uvc_item_ops,
.ct_attrs = uvc_attrs,
.ct_owner = THIS_MODULE,