Skip to contentSkip to conversation

misc: make config_item_type const

PATCH New Bhumika Goyal 1 participant 1 message Oct 12, 2017 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 misc: make config_item_type const

This is a followup patch for: https://lkml.org/lkml/2017/10/11/375

Make this const as it is only stored in the const "ci_type" field of a config_item structure.

---
It does not seem to be possible to compile this driver and it has not received many patches in the last few years, so I wonder if it is still useful to keep it in the kernel.

 drivers/misc/spear13xx_pcie_gadget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/spear13xx_pcie_gadget.c +1 -1
index ee120dc..b9d2649 100644
@@ -598,7 +598,7 @@ static ssize_t pcie_gadget_bar0_data_store(struct config_item *item,
 	NULL,
 };
 
-static struct config_item_type pcie_gadget_target_type = {
+static const struct config_item_type pcie_gadget_target_type = {
 	.ct_attrs		= pcie_gadget_target_attrs,
 	.ct_owner		= THIS_MODULE,
 };
Signature · 1 line
1.9.1