Skip to content

Commit

Permalink
EDAC, mc_sysfs.c: Fix string array pointer types
Browse files Browse the repository at this point in the history
Those should be const ptr to a const string, fix them.

Signed-off-by: Borislav Petkov <bp@suse.de>
  • Loading branch information
Borislav Petkov committed Mar 25, 2013
1 parent 8bb9660 commit 8b7719e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/edac/edac_mc_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static struct device *mci_pdev;
/*
* various constants for Memory Controllers
*/
static const char *mem_types[] = {
static const char * const mem_types[] = {
[MEM_EMPTY] = "Empty",
[MEM_RESERVED] = "Reserved",
[MEM_UNKNOWN] = "Unknown",
Expand All @@ -107,7 +107,7 @@ static const char *mem_types[] = {
[MEM_RDDR3] = "Registered-DDR3"
};

static const char *dev_types[] = {
static const char * const dev_types[] = {
[DEV_UNKNOWN] = "Unknown",
[DEV_X1] = "x1",
[DEV_X2] = "x2",
Expand All @@ -118,7 +118,7 @@ static const char *dev_types[] = {
[DEV_X64] = "x64"
};

static const char *edac_caps[] = {
static const char * const edac_caps[] = {
[EDAC_UNKNOWN] = "Unknown",
[EDAC_NONE] = "None",
[EDAC_RESERVED] = "Reserved",
Expand Down

0 comments on commit 8b7719e

Please sign in to comment.