Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359963
b: refs/heads/master
c: c31d34f
h: refs/heads/master
i:
  359961: b9fc63d
  359959: 3cc0de1
v: v3
  • Loading branch information
Niklas Söderlund authored and Mauro Carvalho Chehab committed Dec 21, 2012
1 parent 9bd30a0 commit cf66832
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da14d93d95ee3923b6e690220bdb7ce191e76d95
refs/heads/master: c31d34fe92e9d0b146907d7294269ee03e1b403f
8 changes: 4 additions & 4 deletions trunk/drivers/edac/i7core_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,21 +420,21 @@ static inline int numdimms(u32 dimms)

static inline int numrank(u32 rank)
{
static int ranks[4] = { 1, 2, 4, -EINVAL };
static const int ranks[] = { 1, 2, 4, -EINVAL };

return ranks[rank & 0x3];
}

static inline int numbank(u32 bank)
{
static int banks[4] = { 4, 8, 16, -EINVAL };
static const int banks[] = { 4, 8, 16, -EINVAL };

return banks[bank & 0x3];
}

static inline int numrow(u32 row)
{
static int rows[8] = {
static const int rows[] = {
1 << 12, 1 << 13, 1 << 14, 1 << 15,
1 << 16, -EINVAL, -EINVAL, -EINVAL,
};
Expand All @@ -444,7 +444,7 @@ static inline int numrow(u32 row)

static inline int numcol(u32 col)
{
static int cols[8] = {
static const int cols[] = {
1 << 10, 1 << 11, 1 << 12, -EINVAL,
};
return cols[col & 0x3];
Expand Down

0 comments on commit cf66832

Please sign in to comment.