Web lists-archives.com

[PATCH] 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.

Signed-off-by: Bhumika Goyal <bhumirks@xxxxxxxxx>
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(-)

diff --git a/drivers/misc/spear13xx_pcie_gadget.c b/drivers/misc/spear13xx_pcie_gadget.c
index ee120dc..b9d2649 100644
--- a/drivers/misc/spear13xx_pcie_gadget.c
+++ b/drivers/misc/spear13xx_pcie_gadget.c
@@ -598,7 +598,7 @@ static ssize_t pcie_gadget_bar0_data_store(struct config_item *item,
-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,