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 <kgunda@codeaurora.org>
tirimbino
Kiran Gunda 6 years ago committed by Gerrit - the friendly Code Review server
parent 696ca2f896
commit 4465854295
  1. 2
      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) {

Loading…
Cancel
Save