Merge remote-tracking branches 'regulator/topic/ltc3589', 'regulator/topic/max77620...
authorMark Brown <broonie@kernel.org>
Sun, 13 Mar 2016 08:19:47 +0000 (15:19 +0700)
committerMark Brown <broonie@kernel.org>
Sun, 13 Mar 2016 08:19:47 +0000 (15:19 +0700)
1  2  3  4  5  6 
MAINTAINERS
drivers/regulator/Kconfig
drivers/regulator/Makefile
drivers/regulator/core.c

diff --cc MAINTAINERS
Simple merge
Simple merge
Simple merge
index 1cff112056429820fbe1801ffdfbbd60178133c0,744c9889f88d4f83e27c05687ac14427c833c0c5,5b1e049a5930b7b62622f8921163ac53deb3f912,744c9889f88d4f83e27c05687ac14427c833c0c5,744c9889f88d4f83e27c05687ac14427c833c0c5,744c9889f88d4f83e27c05687ac14427c833c0c5..e0b7642847731390ed44bbc3e8718fd5dd9e7116
@@@@@@@ -1135,23 -1136,16 -1136,38 -1136,16 -1136,16 -1136,16 +1135,34 @@@@@@@ static int set_machine_constraints(stru
                ret = ops->set_over_current_protection(rdev);
                if (ret < 0) {
                        rdev_err(rdev, "failed to set over current protection\n");
 -----                  goto out;
 +++++                  return ret;
 + +++          }
 + +++  }
 + +++
 + +++  if (rdev->constraints->active_discharge && ops->set_active_discharge) {
 + +++          bool ad_state = (rdev->constraints->active_discharge ==
 + +++                        REGULATOR_ACTIVE_DISCHARGE_ENABLE) ? true : false;
 + +++
 + +++          ret = ops->set_active_discharge(rdev, ad_state);
 + +++          if (ret < 0) {
 + +++                  rdev_err(rdev, "failed to set active discharge\n");
 + +++                  return ret;
 + +++          }
 + +++  }
 + +++
++ +++  if (rdev->constraints->active_discharge && ops->set_active_discharge) {
++ +++          bool ad_state = (rdev->constraints->active_discharge ==
++ +++                        REGULATOR_ACTIVE_DISCHARGE_ENABLE) ? true : false;
++ +++
++ +++          ret = ops->set_active_discharge(rdev, ad_state);
++ +++          if (ret < 0) {
++ +++                  rdev_err(rdev, "failed to set active discharge\n");
++ +++                  return ret;
+               }
+       }
+     
        print_constraints(rdev);
        return 0;
 -----out:
 -----  kfree(rdev->constraints);
 -----  rdev->constraints = NULL;
 -----  return ret;
      }
      
      /**