linux/arch/powerpc/platforms/52xx
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
..
efika.c kbuild: move utsrelease.h to include/generated 2009-12-12 13:08:15 +01:00
Kconfig powerpc/5200: add LocalPlus bus FIFO device driver 2009-11-04 16:42:47 -07:00
lite5200_pm.c powerpc/mpc5200: Document and tidy irq driver 2008-12-21 02:54:26 -07:00
lite5200_sleep.S [POWERPC] MPC5200 low power mode 2007-09-19 15:25:34 +10:00
lite5200.c [POWERPC] Replace remaining __FUNCTION__ occurrences 2008-04-01 20:43:09 +11:00
Makefile powerpc/5200: add LocalPlus bus FIFO device driver 2009-11-04 16:42:47 -07:00
media5200.c genirq: Convert irq_desc.lock to raw_spinlock 2009-12-14 23:55:33 +01:00
mpc52xx_common.c powerpc/5xxx: Add common mpc5xxx_get_bus_frequency() function 2009-06-17 00:30:22 -06:00
mpc52xx_gpio.c of/gpio: Kill of_gpio_chip and add members directly to gpio_chip 2010-07-05 16:14:30 -06:00
mpc52xx_gpt.c of/gpio: Kill of_gpio_chip and add members directly to gpio_chip 2010-07-05 16:14:30 -06:00
mpc52xx_lpbfifo.c of: Remove duplicate fields from of_platform_driver 2010-05-22 00:10:40 -06:00
mpc52xx_pci.c tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
mpc52xx_pic.c powerpc: Make "intspec" pointers in irq_host->xlate() const 2009-12-09 17:10:37 +11:00
mpc52xx_pm.c powerpc/5200: fix oops during going to standby 2010-06-15 14:47:04 -06:00
mpc52xx_sleep.S [POWERPC] mpc52xx suspend to deep-sleep 2007-05-07 20:31:15 +10:00
mpc5200_simple.c mpc5200: support for the MAN mpc5200 based board mucmc52 2009-10-15 09:33:24 -06:00