Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304047
b: refs/heads/master
c: f4cce69
h: refs/heads/master
i:
  304045: 3b1f713
  304043: 785951d
  304039: fc8bf62
  304031: 62ca5b3
v: v3
  • Loading branch information
Chanwoo Choi authored and Greg Kroah-Hartman committed Apr 30, 2012
1 parent b952395 commit 4fc8530
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: a1d26ac0ddc4ea561e17a75dd3b5f9d3c1812f16
refs/heads/master: f4cce69611ee941bac0729c6069795f106905ef9
9 changes: 8 additions & 1 deletion trunk/drivers/extcon/extcon_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,15 @@ static int _call_per_cable(struct notifier_block *nb, unsigned long val,

if ((val & (1 << obj->cable_index)) !=
(edev->state & (1 << obj->cable_index))) {
bool cable_state = true;

obj->previous_value = val;
return obj->user_nb->notifier_call(obj->user_nb, val, ptr);

if (val & (1 << obj->cable_index))
cable_state = false;

return obj->user_nb->notifier_call(obj->user_nb,
cable_state, ptr);
}

return NOTIFY_OK;
Expand Down

0 comments on commit 4fc8530

Please sign in to comment.