diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-10-16 11:18:41 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-10-19 10:15:23 -0400 |
commit | 973639023444320d4fb5c17af58996463b3392d9 (patch) | |
tree | d2a3c610ed318f5f7110f81ee2a5824c0fec8e40 | |
parent | 761594b741768a425d56dd3eb3f5a04276c7bb73 (diff) |
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>
21 files changed, 46 insertions, 46 deletions
diff --git a/drivers/usb/gadget/function/f_acm.c b/drivers/usb/gadget/function/f_acm.c index 5e3828d9dac7..8680af4ab667 100644 --- a/drivers/usb/gadget/function/f_acm.c +++ b/drivers/usb/gadget/function/f_acm.c | |||
@@ -786,7 +786,7 @@ static struct configfs_attribute *acm_attrs[] = { | |||
786 | NULL, | 786 | NULL, |
787 | }; | 787 | }; |
788 | 788 | ||
789 | static struct config_item_type acm_func_type = { | 789 | static const struct config_item_type acm_func_type = { |
790 | .ct_item_ops = &acm_item_ops, | 790 | .ct_item_ops = &acm_item_ops, |
791 | .ct_attrs = acm_attrs, | 791 | .ct_attrs = acm_attrs, |
792 | .ct_owner = THIS_MODULE, | 792 | .ct_owner = THIS_MODULE, |
diff --git a/drivers/usb/gadget/function/f_ecm.c b/drivers/usb/gadget/function/f_ecm.c index 4c488d15b6f6..9657e193d734 100644 --- a/drivers/usb/gadget/function/f_ecm.c +++ b/drivers/usb/gadget/function/f_ecm.c | |||
@@ -845,7 +845,7 @@ static struct configfs_attribute *ecm_attrs[] = { | |||
845 | NULL, | 845 | NULL, |
846 | }; | 846 | }; |
847 | 847 | ||
848 | static struct config_item_type ecm_func_type = { | 848 | static const struct config_item_type ecm_func_type = { |
849 | .ct_item_ops = &ecm_item_ops, | 849 | .ct_item_ops = &ecm_item_ops, |
850 | .ct_attrs = ecm_attrs, | 850 | .ct_attrs = ecm_attrs, |
851 | .ct_owner = THIS_MODULE, | 851 | .ct_owner = THIS_MODULE, |
diff --git a/drivers/usb/gadget/function/f_eem.c b/drivers/usb/gadget/function/f_eem.c index 007ec6e4a5d4..5e5d1645c32a 100644 --- a/drivers/usb/gadget/function/f_eem.c +++ b/drivers/usb/gadget/function/f_eem.c | |||
@@ -556,7 +556,7 @@ static struct configfs_attribute *eem_attrs[] = { | |||
556 | NULL, | 556 | NULL, |
557 | }; | 557 | }; |
558 | 558 | ||
559 | static struct config_item_type eem_func_type = { | 559 | static const struct config_item_type eem_func_type = { |
560 | .ct_item_ops = &eem_item_ops, | 560 | .ct_item_ops = &eem_item_ops, |
561 | .ct_attrs = eem_attrs, | 561 | .ct_attrs = eem_attrs, |
562 | .ct_owner = THIS_MODULE, | 562 | .ct_owner = THIS_MODULE, |
diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c index 8b342587f8ad..5362fc42ffc3 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 = { | |||
3385 | .release = ffs_attr_release, | 3385 | .release = ffs_attr_release, |
3386 | }; | 3386 | }; |
3387 | 3387 | ||
3388 | static struct config_item_type ffs_func_type = { | 3388 | static const struct config_item_type ffs_func_type = { |
3389 | .ct_item_ops = &ffs_item_ops, | 3389 | .ct_item_ops = &ffs_item_ops, |
3390 | .ct_owner = THIS_MODULE, | 3390 | .ct_owner = THIS_MODULE, |
3391 | }; | 3391 | }; |
diff --git a/drivers/usb/gadget/function/f_hid.c b/drivers/usb/gadget/function/f_hid.c index d8e359ef6eb1..6993cb844a3f 100644 --- a/drivers/usb/gadget/function/f_hid.c +++ b/drivers/usb/gadget/function/f_hid.c | |||
@@ -992,7 +992,7 @@ static struct configfs_attribute *hid_attrs[] = { | |||
992 | NULL, | 992 | NULL, |
993 | }; | 993 | }; |
994 | 994 | ||
995 | static struct config_item_type hid_func_type = { | 995 | static const struct config_item_type hid_func_type = { |
996 | .ct_item_ops = &hidg_item_ops, | 996 | .ct_item_ops = &hidg_item_ops, |
997 | .ct_attrs = hid_attrs, | 997 | .ct_attrs = hid_attrs, |
998 | .ct_owner = THIS_MODULE, | 998 | .ct_owner = THIS_MODULE, |
diff --git a/drivers/usb/gadget/function/f_loopback.c b/drivers/usb/gadget/function/f_loopback.c index e70093835e14..9311f8ce80c5 100644 --- a/drivers/usb/gadget/function/f_loopback.c +++ b/drivers/usb/gadget/function/f_loopback.c | |||
@@ -556,7 +556,7 @@ static struct configfs_attribute *lb_attrs[] = { | |||
556 | NULL, | 556 | NULL, |
557 | }; | 557 | }; |
558 | 558 | ||
559 | static struct config_item_type lb_func_type = { | 559 | static const struct config_item_type lb_func_type = { |
560 | .ct_item_ops = &lb_item_ops, | 560 | .ct_item_ops = &lb_item_ops, |
561 | .ct_attrs = lb_attrs, | 561 | .ct_attrs = lb_attrs, |
562 | .ct_owner = THIS_MODULE, | 562 | .ct_owner = THIS_MODULE, |
diff --git a/drivers/usb/gadget/function/f_mass_storage.c b/drivers/usb/gadget/function/f_mass_storage.c index 5153e29870c3..a538be384d7c 100644 --- a/drivers/usb/gadget/function/f_mass_storage.c +++ b/drivers/usb/gadget/function/f_mass_storage.c | |||
@@ -3140,7 +3140,7 @@ static struct configfs_attribute *fsg_lun_attrs[] = { | |||
3140 | NULL, | 3140 | NULL, |
3141 | }; | 3141 | }; |
3142 | 3142 | ||
3143 | static struct config_item_type fsg_lun_type = { | 3143 | static const struct config_item_type fsg_lun_type = { |
3144 | .ct_item_ops = &fsg_lun_item_ops, | 3144 | .ct_item_ops = &fsg_lun_item_ops, |
3145 | .ct_attrs = fsg_lun_attrs, | 3145 | .ct_attrs = fsg_lun_attrs, |
3146 | .ct_owner = THIS_MODULE, | 3146 | .ct_owner = THIS_MODULE, |
@@ -3331,7 +3331,7 @@ static struct configfs_group_operations fsg_group_ops = { | |||
3331 | .drop_item = fsg_lun_drop, | 3331 | .drop_item = fsg_lun_drop, |
3332 | }; | 3332 | }; |
3333 | 3333 | ||
3334 | static struct config_item_type fsg_func_type = { | 3334 | static const struct config_item_type fsg_func_type = { |
3335 | .ct_item_ops = &fsg_item_ops, | 3335 | .ct_item_ops = &fsg_item_ops, |
3336 | .ct_group_ops = &fsg_group_ops, | 3336 | .ct_group_ops = &fsg_group_ops, |
3337 | .ct_attrs = fsg_attrs, | 3337 | .ct_attrs = fsg_attrs, |
diff --git a/drivers/usb/gadget/function/f_midi.c b/drivers/usb/gadget/function/f_midi.c index 5d3d7941d2c2..53fa073f88ed 100644 --- a/drivers/usb/gadget/function/f_midi.c +++ b/drivers/usb/gadget/function/f_midi.c | |||
@@ -1189,7 +1189,7 @@ static struct configfs_attribute *midi_attrs[] = { | |||
1189 | NULL, | 1189 | NULL, |
1190 | }; | 1190 | }; |
1191 | 1191 | ||
1192 | static struct config_item_type midi_func_type = { | 1192 | static const struct config_item_type midi_func_type = { |
1193 | .ct_item_ops = &midi_item_ops, | 1193 | .ct_item_ops = &midi_item_ops, |
1194 | .ct_attrs = midi_attrs, | 1194 | .ct_attrs = midi_attrs, |
1195 | .ct_owner = THIS_MODULE, | 1195 | .ct_owner = THIS_MODULE, |
diff --git a/drivers/usb/gadget/function/f_ncm.c b/drivers/usb/gadget/function/f_ncm.c index 45b334ceaf2e..3599aa4ea73b 100644 --- a/drivers/usb/gadget/function/f_ncm.c +++ b/drivers/usb/gadget/function/f_ncm.c | |||
@@ -1568,7 +1568,7 @@ static struct configfs_attribute *ncm_attrs[] = { | |||
1568 | NULL, | 1568 | NULL, |
1569 | }; | 1569 | }; |
1570 | 1570 | ||
1571 | static struct config_item_type ncm_func_type = { | 1571 | static const struct config_item_type ncm_func_type = { |
1572 | .ct_item_ops = &ncm_item_ops, | 1572 | .ct_item_ops = &ncm_item_ops, |
1573 | .ct_attrs = ncm_attrs, | 1573 | .ct_attrs = ncm_attrs, |
1574 | .ct_owner = THIS_MODULE, | 1574 | .ct_owner = THIS_MODULE, |
diff --git a/drivers/usb/gadget/function/f_obex.c b/drivers/usb/gadget/function/f_obex.c index d43e86cea74f..9fc798822adf 100644 --- a/drivers/usb/gadget/function/f_obex.c +++ b/drivers/usb/gadget/function/f_obex.c | |||
@@ -411,7 +411,7 @@ static struct configfs_attribute *acm_attrs[] = { | |||
411 | NULL, | 411 | NULL, |
412 | }; | 412 | }; |
413 | 413 | ||
414 | static struct config_item_type obex_func_type = { | 414 | static const struct config_item_type obex_func_type = { |
415 | .ct_item_ops = &obex_item_ops, | 415 | .ct_item_ops = &obex_item_ops, |
416 | .ct_attrs = acm_attrs, | 416 | .ct_attrs = acm_attrs, |
417 | .ct_owner = THIS_MODULE, | 417 | .ct_owner = THIS_MODULE, |
diff --git a/drivers/usb/gadget/function/f_phonet.c b/drivers/usb/gadget/function/f_phonet.c index 9c4c58e4a1a2..5fe1f2ae0b6c 100644 --- a/drivers/usb/gadget/function/f_phonet.c +++ b/drivers/usb/gadget/function/f_phonet.c | |||
@@ -599,7 +599,7 @@ static struct configfs_attribute *phonet_attrs[] = { | |||
599 | NULL, | 599 | NULL, |
600 | }; | 600 | }; |
601 | 601 | ||
602 | static struct config_item_type phonet_func_type = { | 602 | static const struct config_item_type phonet_func_type = { |
603 | .ct_item_ops = &phonet_item_ops, | 603 | .ct_item_ops = &phonet_item_ops, |
604 | .ct_attrs = phonet_attrs, | 604 | .ct_attrs = phonet_attrs, |
605 | .ct_owner = THIS_MODULE, | 605 | .ct_owner = THIS_MODULE, |
diff --git a/drivers/usb/gadget/function/f_printer.c b/drivers/usb/gadget/function/f_printer.c index ea0da35a44e2..80728365d0a9 100644 --- a/drivers/usb/gadget/function/f_printer.c +++ b/drivers/usb/gadget/function/f_printer.c | |||
@@ -1261,7 +1261,7 @@ static struct configfs_attribute *printer_attrs[] = { | |||
1261 | NULL, | 1261 | NULL, |
1262 | }; | 1262 | }; |
1263 | 1263 | ||
1264 | static struct config_item_type printer_func_type = { | 1264 | static const struct config_item_type printer_func_type = { |
1265 | .ct_item_ops = &printer_item_ops, | 1265 | .ct_item_ops = &printer_item_ops, |
1266 | .ct_attrs = printer_attrs, | 1266 | .ct_attrs = printer_attrs, |
1267 | .ct_owner = THIS_MODULE, | 1267 | .ct_owner = THIS_MODULE, |
diff --git a/drivers/usb/gadget/function/f_rndis.c b/drivers/usb/gadget/function/f_rndis.c index c7c5b3ce1d98..b981545088f8 100644 --- a/drivers/usb/gadget/function/f_rndis.c +++ b/drivers/usb/gadget/function/f_rndis.c | |||
@@ -890,7 +890,7 @@ static struct configfs_attribute *rndis_attrs[] = { | |||
890 | NULL, | 890 | NULL, |
891 | }; | 891 | }; |
892 | 892 | ||
893 | static struct config_item_type rndis_func_type = { | 893 | static const struct config_item_type rndis_func_type = { |
894 | .ct_item_ops = &rndis_item_ops, | 894 | .ct_item_ops = &rndis_item_ops, |
895 | .ct_attrs = rndis_attrs, | 895 | .ct_attrs = rndis_attrs, |
896 | .ct_owner = THIS_MODULE, | 896 | .ct_owner = THIS_MODULE, |
diff --git a/drivers/usb/gadget/function/f_serial.c b/drivers/usb/gadget/function/f_serial.c index cb00ada21d9c..4ee860bb31c8 100644 --- a/drivers/usb/gadget/function/f_serial.c +++ b/drivers/usb/gadget/function/f_serial.c | |||
@@ -281,7 +281,7 @@ static struct configfs_attribute *acm_attrs[] = { | |||
281 | NULL, | 281 | NULL, |
282 | }; | 282 | }; |
283 | 283 | ||
284 | static struct config_item_type serial_func_type = { | 284 | static const struct config_item_type serial_func_type = { |
285 | .ct_item_ops = &serial_item_ops, | 285 | .ct_item_ops = &serial_item_ops, |
286 | .ct_attrs = acm_attrs, | 286 | .ct_attrs = acm_attrs, |
287 | .ct_owner = THIS_MODULE, | 287 | .ct_owner = THIS_MODULE, |
diff --git a/drivers/usb/gadget/function/f_sourcesink.c b/drivers/usb/gadget/function/f_sourcesink.c index 8784fa12ea2c..ed22e1895b09 100644 --- a/drivers/usb/gadget/function/f_sourcesink.c +++ b/drivers/usb/gadget/function/f_sourcesink.c | |||
@@ -1230,7 +1230,7 @@ static struct configfs_attribute *ss_attrs[] = { | |||
1230 | NULL, | 1230 | NULL, |
1231 | }; | 1231 | }; |
1232 | 1232 | ||
1233 | static struct config_item_type ss_func_type = { | 1233 | static const struct config_item_type ss_func_type = { |
1234 | .ct_item_ops = &ss_item_ops, | 1234 | .ct_item_ops = &ss_item_ops, |
1235 | .ct_attrs = ss_attrs, | 1235 | .ct_attrs = ss_attrs, |
1236 | .ct_owner = THIS_MODULE, | 1236 | .ct_owner = THIS_MODULE, |
diff --git a/drivers/usb/gadget/function/f_subset.c b/drivers/usb/gadget/function/f_subset.c index 434b983f3b4c..e810d15d3831 100644 --- a/drivers/usb/gadget/function/f_subset.c +++ b/drivers/usb/gadget/function/f_subset.c | |||
@@ -412,7 +412,7 @@ static struct configfs_attribute *gether_attrs[] = { | |||
412 | NULL, | 412 | NULL, |
413 | }; | 413 | }; |
414 | 414 | ||
415 | static struct config_item_type gether_func_type = { | 415 | static const struct config_item_type gether_func_type = { |
416 | .ct_item_ops = &gether_item_ops, | 416 | .ct_item_ops = &gether_item_ops, |
417 | .ct_attrs = gether_attrs, | 417 | .ct_attrs = gether_attrs, |
418 | .ct_owner = THIS_MODULE, | 418 | .ct_owner = THIS_MODULE, |
diff --git a/drivers/usb/gadget/function/f_tcm.c b/drivers/usb/gadget/function/f_tcm.c index a82e2bd5ea34..e3cec75837ae 100644 --- a/drivers/usb/gadget/function/f_tcm.c +++ b/drivers/usb/gadget/function/f_tcm.c | |||
@@ -2166,7 +2166,7 @@ static struct configfs_item_operations tcm_item_ops = { | |||
2166 | .release = tcm_attr_release, | 2166 | .release = tcm_attr_release, |
2167 | }; | 2167 | }; |
2168 | 2168 | ||
2169 | static struct config_item_type tcm_func_type = { | 2169 | static const struct config_item_type tcm_func_type = { |
2170 | .ct_item_ops = &tcm_item_ops, | 2170 | .ct_item_ops = &tcm_item_ops, |
2171 | .ct_owner = THIS_MODULE, | 2171 | .ct_owner = THIS_MODULE, |
2172 | }; | 2172 | }; |
diff --git a/drivers/usb/gadget/function/f_uac1.c b/drivers/usb/gadget/function/f_uac1.c index 29efbedc91f9..4d5487ad8ffa 100644 --- a/drivers/usb/gadget/function/f_uac1.c +++ b/drivers/usb/gadget/function/f_uac1.c | |||
@@ -709,7 +709,7 @@ static struct configfs_attribute *f_uac1_attrs[] = { | |||
709 | NULL, | 709 | NULL, |
710 | }; | 710 | }; |
711 | 711 | ||
712 | static struct config_item_type f_uac1_func_type = { | 712 | static const struct config_item_type f_uac1_func_type = { |
713 | .ct_item_ops = &f_uac1_item_ops, | 713 | .ct_item_ops = &f_uac1_item_ops, |
714 | .ct_attrs = f_uac1_attrs, | 714 | .ct_attrs = f_uac1_attrs, |
715 | .ct_owner = THIS_MODULE, | 715 | .ct_owner = THIS_MODULE, |
diff --git a/drivers/usb/gadget/function/f_uac1_legacy.c b/drivers/usb/gadget/function/f_uac1_legacy.c index 5d229e72912e..178fd12f9724 100644 --- a/drivers/usb/gadget/function/f_uac1_legacy.c +++ b/drivers/usb/gadget/function/f_uac1_legacy.c | |||
@@ -921,7 +921,7 @@ static struct configfs_attribute *f_uac1_attrs[] = { | |||
921 | NULL, | 921 | NULL, |
922 | }; | 922 | }; |
923 | 923 | ||
924 | static struct config_item_type f_uac1_func_type = { | 924 | static const struct config_item_type f_uac1_func_type = { |
925 | .ct_item_ops = &f_uac1_item_ops, | 925 | .ct_item_ops = &f_uac1_item_ops, |
926 | .ct_attrs = f_uac1_attrs, | 926 | .ct_attrs = f_uac1_attrs, |
927 | .ct_owner = THIS_MODULE, | 927 | .ct_owner = THIS_MODULE, |
diff --git a/drivers/usb/gadget/function/f_uac2.c b/drivers/usb/gadget/function/f_uac2.c index f05c3f3e6103..7bb9737bf229 100644 --- a/drivers/usb/gadget/function/f_uac2.c +++ b/drivers/usb/gadget/function/f_uac2.c | |||
@@ -921,7 +921,7 @@ static struct configfs_attribute *f_uac2_attrs[] = { | |||
921 | NULL, | 921 | NULL, |
922 | }; | 922 | }; |
923 | 923 | ||
924 | static struct config_item_type f_uac2_func_type = { | 924 | static const struct config_item_type f_uac2_func_type = { |
925 | .ct_item_ops = &f_uac2_item_ops, | 925 | .ct_item_ops = &f_uac2_item_ops, |
926 | .ct_attrs = f_uac2_attrs, | 926 | .ct_attrs = f_uac2_attrs, |
927 | .ct_owner = THIS_MODULE, | 927 | .ct_owner = THIS_MODULE, |
diff --git a/drivers/usb/gadget/function/uvc_configfs.c b/drivers/usb/gadget/function/uvc_configfs.c index 844cb738bafd..f76619f1321d 100644 --- a/drivers/usb/gadget/function/uvc_configfs.c +++ b/drivers/usb/gadget/function/uvc_configfs.c | |||
@@ -127,7 +127,7 @@ static struct configfs_attribute *uvcg_control_header_attrs[] = { | |||
127 | NULL, | 127 | NULL, |
128 | }; | 128 | }; |
129 | 129 | ||
130 | static struct config_item_type uvcg_control_header_type = { | 130 | static const struct config_item_type uvcg_control_header_type = { |
131 | .ct_attrs = uvcg_control_header_attrs, | 131 | .ct_attrs = uvcg_control_header_attrs, |
132 | .ct_owner = THIS_MODULE, | 132 | .ct_owner = THIS_MODULE, |
133 | }; | 133 | }; |
@@ -170,7 +170,7 @@ static struct configfs_group_operations uvcg_control_header_grp_ops = { | |||
170 | .drop_item = uvcg_control_header_drop, | 170 | .drop_item = uvcg_control_header_drop, |
171 | }; | 171 | }; |
172 | 172 | ||
173 | static struct config_item_type uvcg_control_header_grp_type = { | 173 | static const struct config_item_type uvcg_control_header_grp_type = { |
174 | .ct_group_ops = &uvcg_control_header_grp_ops, | 174 | .ct_group_ops = &uvcg_control_header_grp_ops, |
175 | .ct_owner = THIS_MODULE, | 175 | .ct_owner = THIS_MODULE, |
176 | }; | 176 | }; |
@@ -265,7 +265,7 @@ static struct configfs_attribute *uvcg_default_processing_attrs[] = { | |||
265 | NULL, | 265 | NULL, |
266 | }; | 266 | }; |
267 | 267 | ||
268 | static struct config_item_type uvcg_default_processing_type = { | 268 | static const struct config_item_type uvcg_default_processing_type = { |
269 | .ct_attrs = uvcg_default_processing_attrs, | 269 | .ct_attrs = uvcg_default_processing_attrs, |
270 | .ct_owner = THIS_MODULE, | 270 | .ct_owner = THIS_MODULE, |
271 | }; | 271 | }; |
@@ -277,7 +277,7 @@ static struct uvcg_processing_grp { | |||
277 | struct config_group group; | 277 | struct config_group group; |
278 | } uvcg_processing_grp; | 278 | } uvcg_processing_grp; |
279 | 279 | ||
280 | static struct config_item_type uvcg_processing_grp_type = { | 280 | static const struct config_item_type uvcg_processing_grp_type = { |
281 | .ct_owner = THIS_MODULE, | 281 | .ct_owner = THIS_MODULE, |
282 | }; | 282 | }; |
283 | 283 | ||
@@ -382,7 +382,7 @@ static struct configfs_attribute *uvcg_default_camera_attrs[] = { | |||
382 | NULL, | 382 | NULL, |
383 | }; | 383 | }; |
384 | 384 | ||
385 | static struct config_item_type uvcg_default_camera_type = { | 385 | static const struct config_item_type uvcg_default_camera_type = { |
386 | .ct_attrs = uvcg_default_camera_attrs, | 386 | .ct_attrs = uvcg_default_camera_attrs, |
387 | .ct_owner = THIS_MODULE, | 387 | .ct_owner = THIS_MODULE, |
388 | }; | 388 | }; |
@@ -394,7 +394,7 @@ static struct uvcg_camera_grp { | |||
394 | struct config_group group; | 394 | struct config_group group; |
395 | } uvcg_camera_grp; | 395 | } uvcg_camera_grp; |
396 | 396 | ||
397 | static struct config_item_type uvcg_camera_grp_type = { | 397 | static const struct config_item_type uvcg_camera_grp_type = { |
398 | .ct_owner = THIS_MODULE, | 398 | .ct_owner = THIS_MODULE, |
399 | }; | 399 | }; |
400 | 400 | ||
@@ -460,7 +460,7 @@ static struct configfs_attribute *uvcg_default_output_attrs[] = { | |||
460 | NULL, | 460 | NULL, |
461 | }; | 461 | }; |
462 | 462 | ||
463 | static struct config_item_type uvcg_default_output_type = { | 463 | static const struct config_item_type uvcg_default_output_type = { |
464 | .ct_attrs = uvcg_default_output_attrs, | 464 | .ct_attrs = uvcg_default_output_attrs, |
465 | .ct_owner = THIS_MODULE, | 465 | .ct_owner = THIS_MODULE, |
466 | }; | 466 | }; |
@@ -472,7 +472,7 @@ static struct uvcg_output_grp { | |||
472 | struct config_group group; | 472 | struct config_group group; |
473 | } uvcg_output_grp; | 473 | } uvcg_output_grp; |
474 | 474 | ||
475 | static struct config_item_type uvcg_output_grp_type = { | 475 | static const struct config_item_type uvcg_output_grp_type = { |
476 | .ct_owner = THIS_MODULE, | 476 | .ct_owner = THIS_MODULE, |
477 | }; | 477 | }; |
478 | 478 | ||
@@ -481,7 +481,7 @@ static struct uvcg_terminal_grp { | |||
481 | struct config_group group; | 481 | struct config_group group; |
482 | } uvcg_terminal_grp; | 482 | } uvcg_terminal_grp; |
483 | 483 | ||
484 | static struct config_item_type uvcg_terminal_grp_type = { | 484 | static const struct config_item_type uvcg_terminal_grp_type = { |
485 | .ct_owner = THIS_MODULE, | 485 | .ct_owner = THIS_MODULE, |
486 | }; | 486 | }; |
487 | 487 | ||
@@ -586,7 +586,7 @@ static struct configfs_item_operations uvcg_control_class_item_ops = { | |||
586 | .drop_link = uvcg_control_class_drop_link, | 586 | .drop_link = uvcg_control_class_drop_link, |
587 | }; | 587 | }; |
588 | 588 | ||
589 | static struct config_item_type uvcg_control_class_type = { | 589 | static const struct config_item_type uvcg_control_class_type = { |
590 | .ct_item_ops = &uvcg_control_class_item_ops, | 590 | .ct_item_ops = &uvcg_control_class_item_ops, |
591 | .ct_owner = THIS_MODULE, | 591 | .ct_owner = THIS_MODULE, |
592 | }; | 592 | }; |
@@ -596,7 +596,7 @@ static struct uvcg_control_class_grp { | |||
596 | struct config_group group; | 596 | struct config_group group; |
597 | } uvcg_control_class_grp; | 597 | } uvcg_control_class_grp; |
598 | 598 | ||
599 | static struct config_item_type uvcg_control_class_grp_type = { | 599 | static const struct config_item_type uvcg_control_class_grp_type = { |
600 | .ct_owner = THIS_MODULE, | 600 | .ct_owner = THIS_MODULE, |
601 | }; | 601 | }; |
602 | 602 | ||
@@ -605,7 +605,7 @@ static struct uvcg_control_grp { | |||
605 | struct config_group group; | 605 | struct config_group group; |
606 | } uvcg_control_grp; | 606 | } uvcg_control_grp; |
607 | 607 | ||
608 | static struct config_item_type uvcg_control_grp_type = { | 608 | static const struct config_item_type uvcg_control_grp_type = { |
609 | .ct_owner = THIS_MODULE, | 609 | .ct_owner = THIS_MODULE, |
610 | }; | 610 | }; |
611 | 611 | ||
@@ -857,7 +857,7 @@ static struct configfs_attribute *uvcg_streaming_header_attrs[] = { | |||
857 | NULL, | 857 | NULL, |
858 | }; | 858 | }; |
859 | 859 | ||
860 | static struct config_item_type uvcg_streaming_header_type = { | 860 | static const struct config_item_type uvcg_streaming_header_type = { |
861 | .ct_item_ops = &uvcg_streaming_header_item_ops, | 861 | .ct_item_ops = &uvcg_streaming_header_item_ops, |
862 | .ct_attrs = uvcg_streaming_header_attrs, | 862 | .ct_attrs = uvcg_streaming_header_attrs, |
863 | .ct_owner = THIS_MODULE, | 863 | .ct_owner = THIS_MODULE, |
@@ -901,7 +901,7 @@ static struct configfs_group_operations uvcg_streaming_header_grp_ops = { | |||
901 | .drop_item = uvcg_streaming_header_drop, | 901 | .drop_item = uvcg_streaming_header_drop, |
902 | }; | 902 | }; |
903 | 903 | ||
904 | static struct config_item_type uvcg_streaming_header_grp_type = { | 904 | static const struct config_item_type uvcg_streaming_header_grp_type = { |
905 | .ct_group_ops = &uvcg_streaming_header_grp_ops, | 905 | .ct_group_ops = &uvcg_streaming_header_grp_ops, |
906 | .ct_owner = THIS_MODULE, | 906 | .ct_owner = THIS_MODULE, |
907 | }; | 907 | }; |
@@ -1150,7 +1150,7 @@ static struct configfs_attribute *uvcg_frame_attrs[] = { | |||
1150 | NULL, | 1150 | NULL, |
1151 | }; | 1151 | }; |
1152 | 1152 | ||
1153 | static struct config_item_type uvcg_frame_type = { | 1153 | static const struct config_item_type uvcg_frame_type = { |
1154 | .ct_attrs = uvcg_frame_attrs, | 1154 | .ct_attrs = uvcg_frame_attrs, |
1155 | .ct_owner = THIS_MODULE, | 1155 | .ct_owner = THIS_MODULE, |
1156 | }; | 1156 | }; |
@@ -1419,7 +1419,7 @@ static struct configfs_attribute *uvcg_uncompressed_attrs[] = { | |||
1419 | NULL, | 1419 | NULL, |
1420 | }; | 1420 | }; |
1421 | 1421 | ||
1422 | static struct config_item_type uvcg_uncompressed_type = { | 1422 | static const struct config_item_type uvcg_uncompressed_type = { |
1423 | .ct_group_ops = &uvcg_uncompressed_group_ops, | 1423 | .ct_group_ops = &uvcg_uncompressed_group_ops, |
1424 | .ct_attrs = uvcg_uncompressed_attrs, | 1424 | .ct_attrs = uvcg_uncompressed_attrs, |
1425 | .ct_owner = THIS_MODULE, | 1425 | .ct_owner = THIS_MODULE, |
@@ -1469,7 +1469,7 @@ static struct configfs_group_operations uvcg_uncompressed_grp_ops = { | |||
1469 | .drop_item = uvcg_uncompressed_drop, | 1469 | .drop_item = uvcg_uncompressed_drop, |
1470 | }; | 1470 | }; |
1471 | 1471 | ||
1472 | static struct config_item_type uvcg_uncompressed_grp_type = { | 1472 | static const struct config_item_type uvcg_uncompressed_grp_type = { |
1473 | .ct_group_ops = &uvcg_uncompressed_grp_ops, | 1473 | .ct_group_ops = &uvcg_uncompressed_grp_ops, |
1474 | .ct_owner = THIS_MODULE, | 1474 | .ct_owner = THIS_MODULE, |
1475 | }; | 1475 | }; |
@@ -1619,7 +1619,7 @@ static struct configfs_attribute *uvcg_mjpeg_attrs[] = { | |||
1619 | NULL, | 1619 | NULL, |
1620 | }; | 1620 | }; |
1621 | 1621 | ||
1622 | static struct config_item_type uvcg_mjpeg_type = { | 1622 | static const struct config_item_type uvcg_mjpeg_type = { |
1623 | .ct_group_ops = &uvcg_mjpeg_group_ops, | 1623 | .ct_group_ops = &uvcg_mjpeg_group_ops, |
1624 | .ct_attrs = uvcg_mjpeg_attrs, | 1624 | .ct_attrs = uvcg_mjpeg_attrs, |
1625 | .ct_owner = THIS_MODULE, | 1625 | .ct_owner = THIS_MODULE, |
@@ -1663,7 +1663,7 @@ static struct configfs_group_operations uvcg_mjpeg_grp_ops = { | |||
1663 | .drop_item = uvcg_mjpeg_drop, | 1663 | .drop_item = uvcg_mjpeg_drop, |
1664 | }; | 1664 | }; |
1665 | 1665 | ||
1666 | static struct config_item_type uvcg_mjpeg_grp_type = { | 1666 | static const struct config_item_type uvcg_mjpeg_grp_type = { |
1667 | .ct_group_ops = &uvcg_mjpeg_grp_ops, | 1667 | .ct_group_ops = &uvcg_mjpeg_grp_ops, |
1668 | .ct_owner = THIS_MODULE, | 1668 | .ct_owner = THIS_MODULE, |
1669 | }; | 1669 | }; |
@@ -1728,7 +1728,7 @@ static struct configfs_attribute *uvcg_default_color_matching_attrs[] = { | |||
1728 | NULL, | 1728 | NULL, |
1729 | }; | 1729 | }; |
1730 | 1730 | ||
1731 | static struct config_item_type uvcg_default_color_matching_type = { | 1731 | static const struct config_item_type uvcg_default_color_matching_type = { |
1732 | .ct_attrs = uvcg_default_color_matching_attrs, | 1732 | .ct_attrs = uvcg_default_color_matching_attrs, |
1733 | .ct_owner = THIS_MODULE, | 1733 | .ct_owner = THIS_MODULE, |
1734 | }; | 1734 | }; |
@@ -1740,7 +1740,7 @@ static struct uvcg_color_matching_grp { | |||
1740 | struct config_group group; | 1740 | struct config_group group; |
1741 | } uvcg_color_matching_grp; | 1741 | } uvcg_color_matching_grp; |
1742 | 1742 | ||
1743 | static struct config_item_type uvcg_color_matching_grp_type = { | 1743 | static const struct config_item_type uvcg_color_matching_grp_type = { |
1744 | .ct_owner = THIS_MODULE, | 1744 | .ct_owner = THIS_MODULE, |
1745 | }; | 1745 | }; |
1746 | 1746 | ||
@@ -2085,7 +2085,7 @@ static struct configfs_item_operations uvcg_streaming_class_item_ops = { | |||
2085 | .drop_link = uvcg_streaming_class_drop_link, | 2085 | .drop_link = uvcg_streaming_class_drop_link, |
2086 | }; | 2086 | }; |
2087 | 2087 | ||
2088 | static struct config_item_type uvcg_streaming_class_type = { | 2088 | static const struct config_item_type uvcg_streaming_class_type = { |
2089 | .ct_item_ops = &uvcg_streaming_class_item_ops, | 2089 | .ct_item_ops = &uvcg_streaming_class_item_ops, |
2090 | .ct_owner = THIS_MODULE, | 2090 | .ct_owner = THIS_MODULE, |
2091 | }; | 2091 | }; |
@@ -2095,7 +2095,7 @@ static struct uvcg_streaming_class_grp { | |||
2095 | struct config_group group; | 2095 | struct config_group group; |
2096 | } uvcg_streaming_class_grp; | 2096 | } uvcg_streaming_class_grp; |
2097 | 2097 | ||
2098 | static struct config_item_type uvcg_streaming_class_grp_type = { | 2098 | static const struct config_item_type uvcg_streaming_class_grp_type = { |
2099 | .ct_owner = THIS_MODULE, | 2099 | .ct_owner = THIS_MODULE, |
2100 | }; | 2100 | }; |
2101 | 2101 | ||
@@ -2104,7 +2104,7 @@ static struct uvcg_streaming_grp { | |||
2104 | struct config_group group; | 2104 | struct config_group group; |
2105 | } uvcg_streaming_grp; | 2105 | } uvcg_streaming_grp; |
2106 | 2106 | ||
2107 | static struct config_item_type uvcg_streaming_grp_type = { | 2107 | static const struct config_item_type uvcg_streaming_grp_type = { |
2108 | .ct_owner = THIS_MODULE, | 2108 | .ct_owner = THIS_MODULE, |
2109 | }; | 2109 | }; |
2110 | 2110 | ||
@@ -2190,7 +2190,7 @@ static struct configfs_attribute *uvc_attrs[] = { | |||
2190 | NULL, | 2190 | NULL, |
2191 | }; | 2191 | }; |
2192 | 2192 | ||
2193 | static struct config_item_type uvc_func_type = { | 2193 | static const struct config_item_type uvc_func_type = { |
2194 | .ct_item_ops = &uvc_item_ops, | 2194 | .ct_item_ops = &uvc_item_ops, |
2195 | .ct_attrs = uvc_attrs, | 2195 | .ct_attrs = uvc_attrs, |
2196 | .ct_owner = THIS_MODULE, | 2196 | .ct_owner = THIS_MODULE, |