Files
android_kernel_samsung_msm8226/include/asm-generic
Linus Walleij 4aca036de5 gpiolib: separation of pin concerns
The fact that of_gpiochip_add_pin_range() and
gpiochip_add_pin_range() share too much code is fragile and
will invariably mean that bugs need to be fixed in two places
instead of one.

So separate the concerns of gpiolib.c and gpiolib-of.c and
have the latter call the former as back-end. This is necessary
also when going forward with other device descriptions such
as ACPI.

This is done by:

- Adding a return code to gpiochip_add_pin_range() so we can
  reliably check whether this succeeds.

- Get rid of the custom of_pinctrl_add_gpio_range() from
  pinctrl. Instead create of_pinctrl_get() to just retrive the
  pin controller per se from an OF node. This composite
  function was just begging to be deleted, it was way to
  purpose-specific.

- Use pinctrl_dev_get_name() to get the name of the retrieved
  pin controller and use that to call back into the generic
  gpiochip_add_pin_range().

Now the pin range is only allocated and tied to a pin
controller from the core implementation in gpiolib.c.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
[took their side]
Git-commit: 1e63d7b9363f0c57d00991f9f2e0af374dfc591a
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Hanumant Singh <hanumant@codeaurora.org>

Change-Id: Idbdd912d93757c3a2bada6e4ff701ef6dcea47da
2013-06-14 13:34:03 -07:00
..
…
2012-03-28 18:30:03 +01:00
…
…
…
…
…
…
…
2011-03-17 09:19:04 +08:00
2013-06-14 13:34:03 -07:00
…
…
…
…
…
…
…
…
…
…
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
…
…
…
…
…
…
2012-02-23 20:18:56 -07:00
2012-02-23 20:19:04 -07:00
…
…
…
…
…
…
…
…
…
2011-03-17 09:19:04 +08:00
…
…
…
…
…
…
…
2012-01-12 20:13:08 -08:00
2012-01-03 22:55:17 -05:00
2011-10-06 19:47:12 -04:00
…
2011-05-20 12:50:29 -07:00