From 4465854295f4b7bfebe5ee3ee3052990e689e3ca Mon Sep 17 00:00:00 2001 From: Kiran Gunda Date: Fri, 7 Sep 2018 18:06:44 +0530 Subject: [PATCH] regulator: lcdb: Correct the typo in pull down strength programming There is a typo in programming the BST_PD_CTL value. Due to this NCP_PD_STRENGTH register is programmed instead of the BST_PD_STRENGTH. Fix it. Change-Id: If630056f77194d3fdfa30b7c1ddd61f74da04cff Signed-off-by: Kiran Gunda --- drivers/regulator/qpnp-lcdb-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/qpnp-lcdb-regulator.c b/drivers/regulator/qpnp-lcdb-regulator.c index fe543aecdcd6..7f3d3b05bfd9 100644 --- a/drivers/regulator/qpnp-lcdb-regulator.c +++ b/drivers/regulator/qpnp-lcdb-regulator.c @@ -1823,7 +1823,7 @@ static int qpnp_lcdb_init_bst(struct qpnp_lcdb *lcdb) if (lcdb->bst.pd_strength != -EINVAL) { rc = qpnp_lcdb_masked_write(lcdb, lcdb->base + - LCDB_NCP_PD_CTL_REG, BOOST_PD_STRENGTH_BIT, + LCDB_BST_PD_CTL_REG, BOOST_PD_STRENGTH_BIT, lcdb->bst.pd_strength ? BOOST_PD_STRENGTH_BIT : 0); if (rc < 0) {