1. 08 Nov, 2017 1 commit
  2. 14 Aug, 2017 1 commit
    • Gustavo A. R. Silva's avatar
      pinctrl: coh901: constify gpio_chip structure · 115fa3fa
      Gustavo A. R. Silva authored
      This structure is only used to copy into another structure, so declare
      it as const.
      
      This issue was detected using Coccinelle and the following semantic patch:
      
      @r disable optional_qualifier@
      identifier i;
      position p;
      @@
      static struct gpio_chip i@p = { ... };
      
      @ok@
      identifier r.i;
      expression e;
      position p;
      @@
      e = i@p;
      
      @bad@
      position p != {r.p,ok.p};
      identifier r.i;
      struct gpio_chip e;
      @@
      e@i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r.i;
      @@
      static
      +const
       struct gpio_chip i = { ... };
      
      In the following log you can see a significant difference in the code size
      and data segment, hence in the dec segment. This log is the output
      of the size command, before and after the code change:
      
      before:
         text    data     bss     dec     hex filename
        12775    3696      64   16535    4097 drivers/pinctrl/pinctrl-coh901.o
      
      after:
                  bss     dec     hex filename
        12440    3640      64   16144    3f10 drivers/pinctrl/pinctrl-coh901.o
      Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
      Signed-off-by: Linus Walleij's avatarLinus Walleij <linus.walleij@linaro.org>
      115fa3fa
  3. 15 Feb, 2016 1 commit
  4. 05 Jan, 2016 1 commit
  5. 26 Dec, 2015 1 commit
  6. 19 Nov, 2015 1 commit
    • Linus Walleij's avatar
      gpio: change member .dev to .parent · 58383c78
      Linus Walleij authored
      The name .dev in a struct is normally reserved for a struct device
      that is let us say a superclass to the thing described by the struct.
      struct gpio_chip stands out by confusingly using a struct device *dev
      to point to the parent device (such as a platform_device) that
      represents the hardware. As we want to give gpio_chip:s real devices,
      this is not working. We need to rename this member to parent.
      
      This was done by two coccinelle scripts, I guess it is possible to
      combine them into one, but I don't know such stuff. They look like
      this:
      
      @@
      struct gpio_chip *var;
      @@
      -var->dev
      +var->parent
      
      and:
      
      @@
      struct gpio_chip var;
      @@
      -var.dev
      +var.parent
      
      and:
      
      @@
      struct bgpio_chip *var;
      @@
      -var->gc.dev
      +var->gc.parent
      
      Plus a few instances of bgpio that I couldn't figure out how
      to teach Coccinelle to rewrite.
      
      This patch hits all over the place, but I *strongly* prefer this
      solution to any piecemal approaches that just exercise patch
      mechanics all over the place. It mainly hits drivers/gpio and
      drivers/pinctrl which is my own backyard anyway.
      
      Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
      Cc: Rafał Miłecki <zajec5@gmail.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
      Cc: Alek Du <alek.du@intel.com>
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Takashi Iwai <tiwai@suse.com>
      Acked-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Acked-by: default avatarLee Jones <lee.jones@linaro.org>
      Acked-by: default avatarJiri Kosina <jkosina@suse.cz>
      Acked-by: default avatarHans-Christian Egtvedt <egtvedt@samfundet.no>
      Acked-by: default avatarJacek Anaszewski <j.anaszewski@samsung.com>
      Signed-off-by: Linus Walleij's avatarLinus Walleij <linus.walleij@linaro.org>
      58383c78
  7. 16 Oct, 2015 1 commit
  8. 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
  9. 17 Jul, 2015 2 commits
  10. 22 Jul, 2014 1 commit
  11. 26 Mar, 2014 1 commit
  12. 18 Mar, 2014 1 commit
  13. 16 Oct, 2013 1 commit
  14. 17 Jun, 2013 1 commit
  15. 16 Jun, 2013 1 commit
  16. 31 May, 2013 1 commit
    • Linus Walleij's avatar
      pinctrl: coh901: add device tree support · 351c2163
      Linus Walleij authored
      This makes it possible to probe the COH901 pinctrl driver from
      the device tree, and assigned the device tree node in the
      gpio_chip so we can look up cross-references from the device
      tree. Start grabbing the per-port (bank) IRQs by index instead
      of by name so we don't have to look up the IRQs by name going
      forward.
      Signed-off-by: Linus Walleij's avatarLinus Walleij <linus.walleij@linaro.org>
      351c2163
  17. 27 May, 2013 1 commit
  18. 18 May, 2013 1 commit
  19. 03 Apr, 2013 1 commit
  20. 27 Mar, 2013 1 commit
  21. 22 Jan, 2013 1 commit
  22. 21 Nov, 2012 2 commits
  23. 15 Nov, 2012 1 commit
  24. 11 Nov, 2012 2 commits
  25. 13 Aug, 2012 2 commits
  26. 03 Jul, 2012 1 commit
  27. 18 Apr, 2012 1 commit
  28. 12 Mar, 2012 2 commits
  29. 22 Feb, 2012 1 commit
    • Linus Walleij's avatar
      pinctrl: spawn U300 pinctrl from the COH901 GPIO · 128a06d4
      Linus Walleij authored
      This solves the riddle on how the U300 pin controller shall be
      able to reference the struct gpio_chip even though these are
      two separate drivers: spawn the pinctrl child from the GPIO
      driver and pass in the struct gpio_chip as platform data.
      In the process we rename the U300 "pinmux-u300" to
      "pinctrl-u300" so as not to confuse.
      Signed-off-by: Linus Walleij's avatarLinus Walleij <linus.walleij@linaro.org>
      128a06d4
  30. 10 Feb, 2012 2 commits
  31. 03 Jan, 2012 2 commits
  32. 08 Sep, 2011 1 commit
  33. 22 Aug, 2011 1 commit