linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] gpiolib: remove gpiochip_reserve()
@ 2013-02-02 14:44 Alexandre Courbot
  2013-02-02 14:44 ` [PATCH 1/2] arm: pxa: tosa: do not use gpiochip_reserve() Alexandre Courbot
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alexandre Courbot @ 2013-02-02 14:44 UTC (permalink / raw)
  To: linux-arm-kernel

The Tosa (Sharp SL-C6000x) target is the last remaining user of
gpiochip_reserve(). I would like to get rid of this function as part of my
project to totally remove the big static gpio_desc[] array of gpiolib. Patches
that achieve this are written and working, but the presence of
gpiochip_reserve() makes it necessary to maintain a list of "reserved" ranges
in the GPIO space, which complexifies code that would be much simpler
otherwise.

Even for Tosa the use of gpiochip_reserve() does not seem necessary - all GPIO
controllers have their own base GPIO set AFAICT, so there should be no need to
use it. And without any user in the kernel, there should be no reason to keep
this function.

If Dmitri could give his Acked-by or Tested-by and one of the GPIO maintainers
merge this series, I could go ahead with the deeper changes to gpiolib.

Thanks,

Alexandre Courbot (2):
  arm: pxa: tosa: do not use gpiochip_reserve()
  gpiolib: remove gpiochip_reserve()

 arch/arm/mach-pxa/tosa.c   |  6 -----
 drivers/gpio/gpiolib.c     | 58 +++++++---------------------------------------
 include/asm-generic/gpio.h |  1 -
 3 files changed, 8 insertions(+), 57 deletions(-)

-- 
1.8.1.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-02-04 20:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-02 14:44 [PATCH 0/2] gpiolib: remove gpiochip_reserve() Alexandre Courbot
2013-02-02 14:44 ` [PATCH 1/2] arm: pxa: tosa: do not use gpiochip_reserve() Alexandre Courbot
2013-02-03  0:29   ` Haojian Zhuang
2013-02-04 20:42     ` Linus Walleij
2013-02-02 14:44 ` [PATCH 2/2] gpiolib: remove gpiochip_reserve() Alexandre Courbot
2013-02-02 15:01 ` [PATCH 0/2] " Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).