projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df72064
)
mfd: Handle tps65910 clear-mask correctly
author
Marcus Folkesson
<marcus.folkesson@gmail.com>
Tue, 22 Nov 2011 13:39:51 +0000
(14:39 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Tue, 20 Dec 2011 17:53:25 +0000
(18:53 +0100)
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>
drivers/mfd/tps65910.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/tps65910.c
b/drivers/mfd/tps65910.c
index
6f5b8cf
..
c1da84b
100644
(file)
--- 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);