Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176044
b: refs/heads/master
c: 53cf9a6
h: refs/heads/master
v: v3
  • Loading branch information
Amit Kucheria authored and Samuel Ortiz committed Dec 13, 2009
1 parent b89669c commit c3c0535
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 3c684e84d1ab810764c7f509aed74a5c48c590ad
refs/heads/master: 53cf9a605d75877550c1b9793d7e994401d08eb7
4 changes: 2 additions & 2 deletions trunk/drivers/mfd/twl4030-power.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,12 @@ static int __init twl4030_configure_resource(struct twl4030_resconfig *rconfig)
return err;
}

if (rconfig->remap_off >= 0) {
if (rconfig->remap_off != TWL4030_RESCONFIG_UNDEF) {
remap &= ~OFF_STATE_MASK;
remap |= rconfig->remap_off << OFF_STATE_SHIFT;
}

if (rconfig->remap_sleep >= 0) {
if (rconfig->remap_sleep != TWL4030_RESCONFIG_UNDEF) {
remap &= ~SLEEP_STATE_MASK;
remap |= rconfig->remap_off << SLEEP_STATE_SHIFT;
}
Expand Down

0 comments on commit c3c0535

Please sign in to comment.