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
@@@@@@@ -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;
      }
      
      /**