lkml.org 
[lkml]   [2017]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] misc: make config_item_type const
Date
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@gmail.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
\
 
 \ /
  Last update: 2017-10-12 17:29    [W:0.249 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site