aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2013-03-25 10:41:55 -0400
committerBorislav Petkov <bp@suse.de>2013-03-25 10:44:25 -0400
commit8b7719e08a42079d333f902fdbf5823ea9636d65 (patch)
tree40a4b8e621a54000b51a703238b9095f6a940582 /drivers/edac
parent8bb9660418e05bb1845ac1a2428444d78e322cc7 (diff)
EDAC, mc_sysfs.c: Fix string array pointer types
Those should be const ptr to a const string, fix them. Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/edac_mc_sysfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c
index 5899a76eec3b..f6e81b285b4a 100644
--- a/drivers/edac/edac_mc_sysfs.c
+++ b/drivers/edac/edac_mc_sysfs.c
@@ -87,7 +87,7 @@ static struct device *mci_pdev;
87/* 87/*
88 * various constants for Memory Controllers 88 * various constants for Memory Controllers
89 */ 89 */
90static const char *mem_types[] = { 90static const char * const mem_types[] = {
91 [MEM_EMPTY] = "Empty", 91 [MEM_EMPTY] = "Empty",
92 [MEM_RESERVED] = "Reserved", 92 [MEM_RESERVED] = "Reserved",
93 [MEM_UNKNOWN] = "Unknown", 93 [MEM_UNKNOWN] = "Unknown",
@@ -107,7 +107,7 @@ static const char *mem_types[] = {
107 [MEM_RDDR3] = "Registered-DDR3" 107 [MEM_RDDR3] = "Registered-DDR3"
108}; 108};
109 109
110static const char *dev_types[] = { 110static const char * const dev_types[] = {
111 [DEV_UNKNOWN] = "Unknown", 111 [DEV_UNKNOWN] = "Unknown",
112 [DEV_X1] = "x1", 112 [DEV_X1] = "x1",
113 [DEV_X2] = "x2", 113 [DEV_X2] = "x2",
@@ -118,7 +118,7 @@ static const char *dev_types[] = {
118 [DEV_X64] = "x64" 118 [DEV_X64] = "x64"
119}; 119};
120 120
121static const char *edac_caps[] = { 121static const char * const edac_caps[] = {
122 [EDAC_UNKNOWN] = "Unknown", 122 [EDAC_UNKNOWN] = "Unknown",
123 [EDAC_NONE] = "None", 123 [EDAC_NONE] = "None",
124 [EDAC_RESERVED] = "Reserved", 124 [EDAC_RESERVED] = "Reserved",