linux/drivers/gpio
Nate Case 1965d30356 gpio: pca953x: Get platform_data from OpenFirmware
On OpenFirmware platforms, it makes the most sense to get platform_data
from the device tree.  Make an attempt to translate OF node properties
into platform_data struct before bailing out.

Note that the implementation approach taken differs from other device
drivers that make use of device tree information.  This is because I2C
chips are already registered automatically by of_i2c, so we can get by
with a small translator function in the driver.

[akpm@linux-foundation.org: coding-style fixes]
[akpm@linux-foundation.org: kfree(NULL) is legal]
Signed-off-by: Nate Case <ncase@xes-inc.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-06-18 13:03:44 -07:00
..
bt8xxgpio.c gpio: struct device - replace bus_id with dev_name(), dev_set_name() 2009-03-24 16:38:23 -07:00
gpiolib.c gpio: gpio_{request,free}() now required (feature removal) 2009-04-02 19:04:51 -07:00
Kconfig microblaze: Kconfig: Enable drivers for Microblaze 2009-05-21 15:56:04 +02:00
Makefile GPIO: add new Xilinx driver for powerpc 2008-11-12 17:17:16 -08:00
max732x.c gpio: fix probe() error return in gpio driver probes 2009-01-15 16:39:35 -08:00
max7301.c gpio: max7301: add missing __devexit marking 2009-06-18 13:03:44 -07:00
mcp23s08.c gpio: fix probe() error return in gpio driver probes 2009-01-15 16:39:35 -08:00
pca953x.c gpio: pca953x: Get platform_data from OpenFirmware 2009-06-18 13:03:44 -07:00
pcf857x.c gpio: fix probe() error return in gpio driver probes 2009-01-15 16:39:35 -08:00
twl4030-gpio.c twl4030-gpio: cleanup debounce 2009-01-06 15:59:25 -08:00
xilinx_gpio.c GPIO: add new Xilinx driver for powerpc 2008-11-12 17:17:16 -08:00