mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mfd: Program twl4030 remap_sleep correctly
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]>
This commit is contained in:
parent
2955c30992
commit
1ea933f4cd
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue