Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363191
b: refs/heads/master
c: 41a5785
h: refs/heads/master
i:
  363189: bd74285
  363187: 0088aed
  363183: 8443e63
v: v3
  • Loading branch information
Mark Brown committed Apr 2, 2013
1 parent ec55e5e commit 5ebaa4b
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 939c5671d11d86ae783f416b703c705647ac563b
refs/heads/master: 41a57850b5e5c450da351465efcc41383def7f8a
4 changes: 4 additions & 0 deletions trunk/drivers/extcon/extcon-arizona.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,10 @@ static irqreturn_t arizona_micdet(int irq, void *data)
lvl = val & ARIZONA_MICD_LVL_MASK;
lvl >>= ARIZONA_MICD_LVL_SHIFT;

for (i = 0; i < info->num_micd_ranges; i++)
input_report_key(info->input,
info->micd_ranges[i].key, 0);

WARN_ON(!lvl);
WARN_ON(ffs(lvl) - 1 >= info->num_micd_ranges);
if (lvl && ffs(lvl) - 1 < info->num_micd_ranges) {
Expand Down

0 comments on commit 5ebaa4b

Please sign in to comment.