1. 29 Jan, 2017 3 commits
  2. 21 Jan, 2017 1 commit
  3. 20 Jan, 2017 7 commits
  4. 18 Jan, 2017 3 commits
  5. 17 Jan, 2017 1 commit
  6. 16 Jan, 2017 9 commits
  7. 12 Jan, 2017 12 commits
  8. 10 Jan, 2017 2 commits
  9. 05 Jan, 2017 1 commit
  10. 04 Jan, 2017 1 commit
    • Linus Walleij's avatar
      power: supply: gpio_charger: switch to using GPIO descriptors · fb9a33ae
      Linus Walleij authored
      The GPIO charger is using a mix of the legacy GPIO interface
      and <linux/of_gpio.h> which is not the modern way to use GPIOs.
      
      Refactor like this:
      
      - Use a GPIO descriptor for the GPIO line used to monitor the
        charger.
      - Fetch the descriptor with devm_gpiod_get() as the first
        method.
      - If this fails and we are *not* using device tree, then
        start looking to see if we can use platform data instead.
      - After looking up and requesting a GPIO number with the
        legacy API, convert it to a descriptor.
      
      This way we can later isolate and drop the legacy code as
      more platforms move over to using descriptors.
      
      Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
      Cc: Heiko Stuebner <heiko@sntech.de>
      Cc: Lars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
      fb9a33ae