1. 07 1月, 2016 1 次提交
    • D
      regulator: core: remove some dead code · 70dc6daf
      Dan Carpenter 提交于
      Originally queue_delayed_work() used to negative error codes or 0 and 1
      on success depending if the work was queued or not.  It caused a lot of
      bugs where people treated all non-zero returns as failures so we changed
      it to return bool instead in d4283e93 ('workqueue: make queueing
      functions return bool').  Now it never returns failure.
      
      Checking for negative values causes a static checker warning since it is
      impossible based on the bool type.
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      70dc6daf
  2. 05 1月, 2016 1 次提交
  3. 23 12月, 2015 6 次提交
  4. 18 12月, 2015 1 次提交
  5. 17 12月, 2015 1 次提交
  6. 16 12月, 2015 2 次提交
  7. 13 12月, 2015 2 次提交
  8. 09 12月, 2015 1 次提交
  9. 03 12月, 2015 5 次提交
  10. 02 12月, 2015 1 次提交
  11. 01 12月, 2015 1 次提交
  12. 30 11月, 2015 2 次提交
  13. 28 11月, 2015 1 次提交
    • A
      regulator: core: fix regulator_lock_supply regression · bb41897e
      Arnd Bergmann 提交于
      As noticed by Geert Uytterhoeven, my patch to avoid a harmless build warning
      in regulator_lock_supply() was total crap and introduced a real bug:
      
      > [ BUG: bad unlock balance detected! ]
      > kworker/u4:0/6 is trying to release lock (&rdev->mutex) at:
      > [<c0247b84>] regulator_set_voltage+0x38/0x50
      
      we still lock the regulator supplies, but not the actual regulators,
      so we are missing a lock, and the unlock is unbalanced.
      
      This rectifies it by first locking the regulator device itself before
      using the same loop as before to lock its supplies.
      Reported-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: 716fec9d1965 ("[SUBMITTED] regulator: core: avoid unused variable warning")
      Signed-off-by: NMark Brown <broonie@kernel.org>
      bb41897e
  14. 27 11月, 2015 1 次提交
    • M
      regulator: add LM363X driver · 3a8d1a73
      Milo Kim 提交于
      LM363X regulator driver supports LM3631 and LM3632.
      LM3631 has 5 regulators. LM3632 provides 3 regulators.
      One boost output and LDOs are used for the display module.
      Boost voltage is configurable but always on.
      Supported operations for LDOs are enabled/disabled and voltage change.
      
      Two LDOs of LM3632 can be controlled by external pins.
      Those are configured through the DT properties.
      Signed-off-by: NMilo Kim <milo.kim@ti.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      3a8d1a73
  15. 25 11月, 2015 2 次提交
  16. 24 11月, 2015 1 次提交
  17. 23 11月, 2015 1 次提交
  18. 21 11月, 2015 2 次提交
    • J
      regulator: pv88060: new regulator driver · f307a7e9
      James Ban 提交于
      This is the driver for the Powerventure PV88060 BUCKs and LDOs regulator.
      It communicates via an I2C bus to the device.
      Signed-off-by: NJames Ban <James.Ban.opensource@diasemi.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      f307a7e9
    • A
      regulator: core: avoid unused variable warning · fa731ac7
      Arnd Bergmann 提交于
      The second argument of the mutex_lock_nested() helper is only
      evaluated if CONFIG_DEBUG_LOCK_ALLOC is set. Otherwise we
      get this build warning for the new regulator_lock_supply
      function:
      
      drivers/regulator/core.c: In function 'regulator_lock_supply':
      drivers/regulator/core.c:142:6: warning: unused variable 'i' [-Wunused-variable]
      
      To avoid the warning, this restructures the code to make it
      both simpler and to move the 'i++' outside of the mutex_lock_nested
      call, where it is now always used and the variable is not
      flagged as unused.
      
      We had some discussion about changing mutex_lock_nested to an
      inline function, which would make the code do the right thing here,
      but in the end decided against it, in order to guarantee that
      mutex_lock_nested() does not introduced overhead without
      CONFIG_DEBUG_LOCK_ALLOC.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: 9f01cd4a ("regulator: core: introduce function to lock regulators and its supplies")
      Link: http://permalink.gmane.org/gmane.linux.kernel/2068900Signed-off-by: NMark Brown <broonie@kernel.org>
      fa731ac7
  19. 18 11月, 2015 2 次提交
  20. 17 11月, 2015 1 次提交
  21. 16 11月, 2015 1 次提交
  22. 04 11月, 2015 1 次提交
  23. 28 10月, 2015 1 次提交
  24. 23 10月, 2015 1 次提交
  25. 22 10月, 2015 1 次提交