1. 16 2月, 2016 1 次提交
  2. 05 1月, 2016 1 次提交
  3. 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
  4. 08 4月, 2015 1 次提交
  5. 20 10月, 2014 1 次提交
  6. 22 7月, 2014 1 次提交
  7. 09 5月, 2014 1 次提交
  8. 19 3月, 2014 4 次提交
  9. 12 2月, 2014 3 次提交
  10. 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
  11. 16 8月, 2013 1 次提交
  12. 20 6月, 2013 1 次提交
  13. 27 3月, 2013 3 次提交
  14. 02 3月, 2013 1 次提交
  15. 20 12月, 2012 1 次提交
  16. 29 11月, 2012 3 次提交
  17. 14 9月, 2012 1 次提交
    • J
      gpio: gpio-ich: Share ownership of GPIO groups · 4f600ada
      Jean Delvare 提交于
      The ICH chips have their GPIO pins organized in 2 or 3 independent
      groups of 32 GPIO pins. It can happen that the ACPI BIOS wants to make
      use of pins in one group, preventing the OS to access these. This does
      not prevent the OS from accessing the other group(s).
      
      This is the case for example on my Asus Z8NA-D6 board. The ACPI BIOS
      wants to control GPIO 18 (group 1), while I (the OS) need to control
      GPIO 52 and 53 (group 2) for SMBus multiplexing.
      
      So instead of checking for ACPI resource conflict on the whole I/O
      range, check on a per-group basis, and consider it a success if at
      least one of the groups is available for the OS to use.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Peter Tyser <ptyser@xes-inc.com>
      Cc: Aaron Sierra <asierra@xes-inc.com>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      4f600ada
  18. 01 5月, 2012 1 次提交