Skip to content

Commit

Permalink
mfd: Program twl4030 remap_sleep correctly
Browse files Browse the repository at this point in the history
Variable remap was incorrectly referencing remap_off for the remap_sleep
case when configuring TWL4030 power scripts.

Signed-off-by: Mike Turquette <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
Mike Turquette authored and Samuel Ortiz committed Mar 7, 2010
1 parent 2955c30 commit 1ea933f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/twl4030-power.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ static int __init twl4030_configure_resource(struct twl4030_resconfig *rconfig)

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

err = twl_i2c_write_u8(TWL4030_MODULE_PM_RECEIVER,
Expand Down

0 comments on commit 1ea933f

Please sign in to comment.