提交 74d8b45f 编写于 作者: I Ivaylo Dimitrov 提交者: Mark Brown

regulator: twl: Fix a typo in twl4030_send_pb_msg

Commit <2330b05c> ("regulator: twl: Make
sure we have access to powerbus before trying to write to it")
has implemented the needed logic to correctly access powerbus through i2c,
however it brought a typo when powerbus configuration is restored, which
results in writing to a wrong register. Fix that by providing the correct
register value.
Signed-off-by: NIvaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 a221f95e
...@@ -253,7 +253,7 @@ static int twl4030_send_pb_msg(unsigned msg) ...@@ -253,7 +253,7 @@ static int twl4030_send_pb_msg(unsigned msg)
/* Restore powerbus configuration */ /* Restore powerbus configuration */
return twl_i2c_write_u8(TWL_MODULE_PM_MASTER, val, return twl_i2c_write_u8(TWL_MODULE_PM_MASTER, val,
TWL_MODULE_PM_MASTER); TWL4030_PM_MASTER_PB_CFG);
} }
static int twl4030reg_enable(struct regulator_dev *rdev) static int twl4030reg_enable(struct regulator_dev *rdev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册