1. 18 5月, 2018 1 次提交
  2. 12 2月, 2018 1 次提交
  3. 25 4月, 2017 1 次提交
  4. 13 9月, 2016 1 次提交
    • J
      ASoC: constify gpio_chip structures · c59b24f8
      Julia Lawall 提交于
      These structures are only used to copy into other structures, so declare
      them as const.
      
      The semantic patch that makes this change is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @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 = { ... };
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      c59b24f8
  5. 02 9月, 2016 1 次提交
    • J
      ASoC: constify snd_soc_codec_driver structures · f802d6c0
      Julia Lawall 提交于
      Check for snd_soc_codec_driver structures that are only passed to
      snd_soc_register_codec or memcpy (2nd arg), for which the corresponding
      parameters are declared const.  Declare as const snd_soc_codec_driver
      structures that have these properties.
      
      The semantic patch that makes this change is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r disable optional_qualifier@
      identifier i;
      position p;
      @@
      static struct snd_soc_codec_driver i@p = { ... };
      
      @ok@
      identifier r.i;
      expression e1,e2,e3;
      position p;
      @@
      (
      snd_soc_register_codec(e1,&i@p,e2,e3)
      |
      memcpy(e1,&i@p,e2)
      )
      
      @bad@
      position p != {r.p,ok.p};
      identifier r.i;
      @@
      i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r.i;
      @@
      static
      +const
       struct snd_soc_codec_driver i = { ... };
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Acked-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      f802d6c0
  6. 08 8月, 2016 1 次提交
  7. 26 4月, 2016 1 次提交
  8. 19 11月, 2015 1 次提交
    • L
      gpio: change member .dev to .parent · 58383c78
      Linus Walleij 提交于
      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: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Acked-by: NLee Jones <lee.jones@linaro.org>
      Acked-by: NJiri Kosina <jkosina@suse.cz>
      Acked-by: NHans-Christian Egtvedt <egtvedt@samfundet.no>
      Acked-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      58383c78
  9. 25 7月, 2015 1 次提交
  10. 17 7月, 2015 2 次提交
  11. 15 7月, 2015 1 次提交
  12. 09 7月, 2015 1 次提交
  13. 01 6月, 2015 1 次提交
  14. 13 5月, 2015 1 次提交
  15. 10 3月, 2015 1 次提交
  16. 15 1月, 2015 1 次提交
  17. 13 12月, 2014 1 次提交
  18. 19 9月, 2014 1 次提交
  19. 18 9月, 2014 1 次提交
  20. 19 6月, 2014 1 次提交
  21. 15 4月, 2014 1 次提交
  22. 11 3月, 2014 1 次提交
  23. 23 2月, 2014 1 次提交
  24. 20 2月, 2014 1 次提交
  25. 23 1月, 2014 1 次提交
  26. 06 11月, 2013 1 次提交
  27. 20 1月, 2013 1 次提交
  28. 05 1月, 2013 1 次提交
  29. 09 12月, 2012 1 次提交
  30. 20 11月, 2012 1 次提交
  31. 06 10月, 2012 1 次提交
  32. 08 9月, 2012 1 次提交
  33. 19 6月, 2012 1 次提交
  34. 03 6月, 2012 1 次提交
  35. 12 5月, 2012 1 次提交
  36. 02 5月, 2012 1 次提交
  37. 01 4月, 2012 1 次提交
  38. 22 2月, 2012 1 次提交
  39. 01 2月, 2012 1 次提交