[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1507822091-26687-1-git-send-email-bhumirks@gmail.com>
Date: Thu, 12 Oct 2017 17:28:11 +0200
From: Bhumika Goyal <bhumirks@...il.com>
To: julia.lawall@...6.fr, arnd@...db.de, gregkh@...uxfoundation.org,
linux-kernel@...r.kernel.org
Cc: Bhumika Goyal <bhumirks@...il.com>
Subject: [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@...il.com>
---
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,
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,
};
--
1.9.1
Powered by blists - more mailing lists