linux/arch/powerpc/platforms/86xx
Anton Vorontsov a19e3da5bc of/gpio: Kill of_gpio_chip and add members directly to gpio_chip
The OF gpio infrastructure is great for describing GPIO connections within
the device tree.  However, using a GPIO binding still requires changes to
the gpio controller just to add an of_gpio structure.  In most cases, the
gpio controller doesn't actually need any special support and the simple
OF gpio mapping function is more than sufficient.  Additional, the current
scheme of using of_gpio_chip requires a convoluted scheme to maintain
1:1 mappings between of_gpio_chip and gpio_chip instances.

If the struct of_gpio_chip data members were moved into struct gpio_chip,
then it would simplify the processing of OF gpio bindings, and it would
make it trivial to use device tree OF connections on existing gpiolib
controller drivers.

This patch eliminates the of_gpio_chip structure and moves the relevant
fields into struct gpio_chip (conditional on CONFIG_OF_GPIO).  This move
simplifies the existing code and prepares for adding automatic device tree
support to existing drivers.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Anton Vorontsov <avorontsov@ru.mvista.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Bill Gatliff <bgat@billgatliff.com>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Jean Delvare <khali@linux-fr.org>
2010-07-05 16:14:30 -06:00
..
gef_gpio.c of/gpio: Kill of_gpio_chip and add members directly to gpio_chip 2010-07-05 16:14:30 -06:00
gef_pic.c powerpc/86xx: Renaming following split of GE Fanuc joint venture 2010-03-04 10:43:44 -06:00
gef_pic.h powerpc: GE Fanuc's FPGA based PIC controller on the SBC610 2008-10-13 11:09:57 -05:00
gef_ppc9a.c powerpc/86xx: Renaming following split of GE Fanuc joint venture 2010-03-04 10:43:44 -06:00
gef_sbc310.c powerpc/86xx: Renaming following split of GE Fanuc joint venture 2010-03-04 10:43:44 -06:00
gef_sbc610.c powerpc/86xx: Renaming following split of GE Fanuc joint venture 2010-03-04 10:43:44 -06:00
Kconfig powerpc/85xx/86xx: Fix build w/ CONFIG_PCI=n 2010-04-19 23:12:21 -05:00
Makefile powerpc/86xx: Board support for GE Fanuc's PPC9A 2009-03-19 04:01:00 -05:00
mpc86xx_hpcn.c powerpc: Remove swiotlb_pci_dma_ops 2009-08-28 14:24:09 +10:00
mpc86xx_smp.c powerpc: Move definitions of secondary CPU spinloop to header file 2009-08-20 10:12:44 +10:00
mpc86xx.h powerpc/86xx: Refactor pic init 2008-07-14 07:55:41 -05:00
mpc8610_hpcd.c powerpc/8610: add probing for individual DMA channels, not just DMA controllers 2010-05-17 10:55:33 -05:00
pic.c powerpc/mpic: Fix regression caused by change of default IRQ affinity 2008-10-31 16:13:50 +11:00
sbc8641d.c powerpc/86xx: clean up smp init code 2009-05-19 00:50:20 -05:00