提交 8f6a459a 编写于 作者: M Marcus Folkesson 提交者: Samuel Ortiz

mfd: Handle tps65910 clear-mask correctly

The function is not actually cleaing the bitmask.
Signed-off-by: NMarcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 df720647
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册