Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206589
b: refs/heads/master
c: e88ff1e
h: refs/heads/master
i:
  206587: 2b346c2
v: v3
  • Loading branch information
Mark Brown committed Jul 8, 2010
1 parent fd0e6e6 commit 7af1af3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d9823ed9fa3126097dfd2bbce6dc33957c1be728
refs/heads/master: e88ff1e6db0ae6462e881d9f10776f7bdfd32e64
20 changes: 20 additions & 0 deletions trunk/sound/soc/codecs/wm8994.c
Original file line number Diff line number Diff line change
Expand Up @@ -1677,6 +1677,26 @@ static struct {

static int wm8994_readable(unsigned int reg)
{
switch (reg) {
case WM8994_GPIO_1:
case WM8994_GPIO_2:
case WM8994_GPIO_3:
case WM8994_GPIO_4:
case WM8994_GPIO_5:
case WM8994_GPIO_6:
case WM8994_GPIO_7:
case WM8994_GPIO_8:
case WM8994_GPIO_9:
case WM8994_GPIO_10:
case WM8994_GPIO_11:
case WM8994_INTERRUPT_STATUS_1:
case WM8994_INTERRUPT_STATUS_2:
case WM8994_INTERRUPT_RAW_STATUS_2:
return 1;
default:
break;
}

if (reg >= ARRAY_SIZE(access_masks))
return 0;
return access_masks[reg].readable != 0;
Expand Down

0 comments on commit 7af1af3

Please sign in to comment.