1. 07 6月, 2016 2 次提交
  2. 11 5月, 2016 1 次提交
    • P
      gpio: stmpe: make it explicitly non-modular · 3b52bb96
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/gpio/Kconfig:config GPIO_STMPE
      drivers/gpio/Kconfig:   bool "STMPE GPIOs"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      We explicitly disallow a driver unbind, since that doesn't have a
      sensible use case anyway, and it allows us to drop the ".remove"
      code for non-modular drivers.
      
      Curiously, this driver was using subsys_initcall since day one, so
      we don't have the "normal" module_init replacement in this change
      like we've done in other similar driver updates.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      is already contained at the top of the file in the comments.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: Rabin Vincent <rabin.vincent@stericsson.com>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      3b52bb96
  3. 05 1月, 2016 1 次提交
  4. 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
  5. 20 1月, 2015 1 次提交
  6. 02 10月, 2014 2 次提交
  7. 26 9月, 2014 1 次提交
  8. 22 7月, 2014 1 次提交
  9. 19 6月, 2014 1 次提交
  10. 23 5月, 2014 1 次提交
  11. 04 12月, 2013 1 次提交
    • L
      gpio/pinctrl: make gpio_chip members typed boolean · 9fb1f39e
      Linus Walleij 提交于
      This switches the two members of struct gpio_chip that were
      defined as unsigned foo:1 to bool, because that is indeed what
      they are. Switch all users in the gpio and pinctrl subsystems
      to assign these values with true/false instead of 0/1. The
      users outside these subsystems will survive since true/false
      is 1/0, atleast we set some kind of more strict typing example.
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      9fb1f39e
  12. 16 10月, 2013 1 次提交
    • L
      gpio: stmpe: drop references to "virtual" IRQ, fix bug · ed05e204
      Linus Walleij 提交于
      Rename the argument "virq" to just "irq", this IRQ isn't any
      more "virtual" than any other Linux IRQ number, we use "hwirq"
      for the actual hw-numbers, "virq" is just bogus.
      
      When doing this I see that the hwirq argument is used
      for mapping rather than the Linux IRQ in the map function.
      This doesn't look right. Use the Linux IRQ instead.
      
      I cannot test this patch so I don't know if the mapping change
      is correct, however since absolutely every other driver does
      it the other way around this doesn't look sound at all. Please
      help out with review.
      
      Cc: Vipul Kumar Samar <vipulkumar.samar@st.com>
      Cc: Lee Jones <lee.jones@linaro.org>
      Cc: Gabriel Fernandez <gabriel.fernandez@st.com>
      Cc: Jean-Nicolas Graux <jean-nicolas.graux@st.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      ed05e204
  13. 31 5月, 2013 2 次提交
  14. 27 3月, 2013 1 次提交
  15. 10 12月, 2012 1 次提交
  16. 02 12月, 2012 1 次提交
  17. 29 11月, 2012 3 次提交
  18. 13 3月, 2012 1 次提交
  19. 07 3月, 2012 1 次提交
  20. 09 1月, 2012 1 次提交
  21. 07 6月, 2011 1 次提交
  22. 25 3月, 2011 1 次提交
  23. 14 1月, 2011 1 次提交
  24. 29 10月, 2010 3 次提交
  25. 12 8月, 2010 1 次提交