Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357571
b: refs/heads/master
c: 025d982
h: refs/heads/master
i:
  357569: 507082e
  357567: ebe494f
v: v3
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Feb 13, 2013
1 parent 64dbbd0 commit f6a25fd
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 0101e53cbb1c653738de8dfddc80c0faa5a4fd39
refs/heads/master: 025d982079502b1d6c7c428504eb64c5059a2e80
11 changes: 7 additions & 4 deletions trunk/drivers/mfd/wm5102-tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -1831,9 +1831,6 @@ static bool wm5102_readable_register(struct device *dev, unsigned int reg)

static bool wm5102_volatile_register(struct device *dev, unsigned int reg)
{
if (reg > 0xffff)
return true;

switch (reg) {
case ARIZONA_SOFTWARE_RESET:
case ARIZONA_DEVICE_REVISION:
Expand Down Expand Up @@ -1878,7 +1875,13 @@ static bool wm5102_volatile_register(struct device *dev, unsigned int reg)
case ARIZONA_MIC_DETECT_3:
return true;
default:
return false;
if ((reg >= 0x100000 && reg < 0x106000) ||
(reg >= 0x180000 && reg < 0x180800) ||
(reg >= 0x190000 && reg < 0x194800) ||
(reg >= 0x1a8000 && reg < 0x1a9800))
return true;
else
return false;
}
}

Expand Down

0 comments on commit f6a25fd

Please sign in to comment.