Title: [8429] trunk/arch/blackfin/mach-bf537/boards/stamp.c: Change IIO_GPIO_TRIGGER platform data to use
- Revision
- 8429
- Author
- hennerich
- Date
- 2010-03-09 04:41:40 -0500 (Tue, 09 Mar 2010)
Log Message
Change IIO_GPIO_TRIGGER platform data to use
resource facility to get IRQs numbers and flags.
Modified Paths
Diff
Modified: trunk/arch/blackfin/mach-bf537/boards/stamp.c (8428 => 8429)
--- trunk/arch/blackfin/mach-bf537/boards/stamp.c 2010-03-09 09:38:16 UTC (rev 8428)
+++ trunk/arch/blackfin/mach-bf537/boards/stamp.c 2010-03-09 09:41:40 UTC (rev 8429)
@@ -2255,13 +2255,19 @@
#if defined(CONFIG_IIO_GPIO_TRIGGER) || \
defined(CONFIG_IIO_GPIO_TRIGGER_MODULE)
-static const unsigned iio_gpio_trigger_pdata[] = {GPIO_PF5};
+
+static struct resource iio_gpio_trigger_resources[] = {
+ [0] = {
+ .start = IRQ_PF5,
+ .end = IRQ_PF5,
+ .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWEDGE,
+ },
+};
+
static struct platform_device iio_gpio_trigger = {
.name = "iio_gpio_trigger",
- .id = 0,
- .dev = {
- .platform_data = &iio_gpio_trigger_pdata,
- },
+ .num_resources = ARRAY_SIZE(iio_gpio_trigger_resources),
+ .resource = iio_gpio_trigger_resources,
};
#endif
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits