mfd: Program twl4030 remap_sleep correctly

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Sunday, March 7, 2010 - 6:03 pm

Gitweb:     http://git.kernel.org/linus/1ea933f4cdbb88197139b9e62778beba0120e229
Commit:     1ea933f4cdbb88197139b9e62778beba0120e229
Parent:     2955c309921e23d592ef585cf8e7ded1e11565b7
Author:     Mike Turquette <mturquette@ti.com>
AuthorDate: Fri Feb 5 09:51:37 2010 +0100
Committer:  Samuel Ortiz <sameo@linux.intel.com>
CommitDate: Sun Mar 7 22:17:14 2010 +0100

    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 <mturquette@ti.com>
    Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
---
 drivers/mfd/twl4030-power.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c
index 0815292..5b045ff 100644
--- a/drivers/mfd/twl4030-power.c
+++ b/drivers/mfd/twl4030-power.c
@@ -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,
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
mfd: Program twl4030 remap_sleep correctly, Linux Kernel Mailing ..., (Sun Mar 7, 6:03 pm)