1. 24 Mar, 2017 3 commits
  2. 07 Sep, 2016 1 commit
  3. 05 Jan, 2016 1 commit
  4. 26 Dec, 2015 1 commit
    • Linus Walleij's avatar
      gpio: sa1100: Be sure to clamp return value · 6a681b61
      Linus Walleij authored
      As we want gpio_chip .get() calls to be able to return negative
      error codes and propagate to drivers, we need to go over all
      drivers and make sure their return values are clamped to [0,1].
      We do this by using the ret = !!(val) design pattern.
      
      Cc: Russell King <rmk+kernel@arm.linux.org.uk>
      Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
      Cc: Kristoffer Ericson <kristoffer.ericson@gmail.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      6a681b61
  5. 16 Sep, 2015 1 commit
    • Thomas Gleixner's avatar
      genirq: Remove irq argument from irq flow handlers · bd0b9ac4
      Thomas Gleixner authored
      Most interrupt flow handlers do not use the irq argument. Those few
      which use it can retrieve the irq number from the irq descriptor.
      
      Remove the argument.
      
      Search and replace was done with coccinelle and some extra helper
      scripts around it. Thanks to Julia for her help!
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: Jiang Liu <jiang.liu@linux.intel.com>
      bd0b9ac4
  6. 28 Jul, 2015 1 commit
    • Rob Herring's avatar
      gpio: kill off set_irq_flags usage · 23393d49
      Rob Herring authored
      set_irq_flags is ARM specific with custom flags which have genirq
      equivalents. Convert drivers to use the genirq interfaces directly, so we
      can kill off set_irq_flags. The translation of flags is as follows:
      
      IRQF_VALID -> !IRQ_NOREQUEST
      IRQF_PROBE -> !IRQ_NOPROBE
      IRQF_NOAUTOEN -> IRQ_NOAUTOEN
      
      For IRQs managed by an irqdomain, the irqdomain core code handles clearing
      and setting IRQ_NOREQUEST already, so there is no need to do this in
      .map() functions and we can simply remove the set_irq_flags calls. Some
      users also modify IRQ_NOPROBE and this has been maintained although it
      is not clear that is really needed as most platforms don't use probing.
      There appears to be a great deal of blind copy and paste of this code.
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Cc: Michael Hennerich <michael.hennerich@analog.com>
      Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: Ray Jui <rjui@broadcom.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Cc: bcm-kernel-feedback-list@broadcom.com
      Cc: linux-tegra@vger.kernel.org
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      23393d49
  7. 14 Jul, 2015 1 commit
    • Thomas Gleixner's avatar
      gpio/sa1100: Prepare sa1100_gpio_handler for irq argument removal · 2951a799
      Thomas Gleixner authored
      The irq argument of most interrupt flow handlers is unused or merily
      used instead of a local variable. The handlers which need the irq
      argument can retrieve the irq number from the irq descriptor.
      
      Search and update was done with coccinelle and the invaluable help of
      Julia Lawall.
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: Jiang Liu <jiang.liu@linux.intel.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      2951a799
  8. 06 May, 2015 1 commit
  9. 29 Jan, 2015 2 commits
  10. 29 Oct, 2013 1 commit
    • Linus Walleij's avatar
      ARM: 7841/1: sa1100: remove complex GPIO interface · 40ca061b
      Linus Walleij authored
      The SA1100 was implementing its own variants of gpio_get_value()
      and gpio_set_value() and only selectively falling back to
      gpiolib for extended (EGPIO) handling. However the driver in
      gpio/gpio-sa1100.c already handles the same functionality for
      these lines, yet remain unused.
      
      The only upside would be things like a timing-critical hotpath
      on bit-banged GPIO, but that kind of things does not seem to
      happen on these GPIOs, so it is not worth having the extra
      complexity.
      
      Tested with some buttons on the Compaq iPAQ H3630.
      
      Cc: Kristoffer Ericson <kristoffer.ericson@gmail.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      40ca061b
  11. 25 Mar, 2012 1 commit
  12. 14 Jan, 2012 1 commit
  13. 22 Aug, 2011 1 commit
  14. 08 Aug, 2011 1 commit
  15. 07 Aug, 2008 2 commits
  16. 10 Apr, 2008 1 commit