summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/tps65910.c
diff options
context:
space:
mode:
authorMarcus Folkesson <marcus.folkesson@gmail.com>2011-11-22 14:39:51 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2011-12-20 18:53:25 +0100
commit8f6a459a9daa6ce76d7c192f2cb3047fffb45ec8 (patch)
treebdcaf56da9946a05eef1ba4b95626b1dd41c314d /drivers/mfd/tps65910.c
parentdf7206477e36bb73e81b99c2cbbc1b91e4b1c8ac (diff)
downloadlinux-8f6a459a9daa6ce76d7c192f2cb3047fffb45ec8.tar.bz2
mfd: Handle tps65910 clear-mask correctly
The function is not actually cleaing the bitmask. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/tps65910.c')
-rw-r--r--drivers/mfd/tps65910.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c
index 6f5b8cf2f652..c1da84bc1573 100644
--- a/drivers/mfd/tps65910.c
+++ b/drivers/mfd/tps65910.c
@@ -120,7 +120,7 @@ int tps65910_clear_bits(struct tps65910 *tps65910, u8 reg, u8 mask)
goto out;
}
- data &= mask;
+ data &= ~mask;
err = tps65910_i2c_write(tps65910, reg, 1, &data);
if (err)
dev_err(tps65910->dev, "write to reg %x failed\n", reg);