Dne Po 22. března 2010 07:03:29 Graham Gower napsal(a): > Hi Marek, > I wish to use the ucb1400_ts driver on my device. But I'm having trouble > passing the platform_data to the ucb1400_core driver. > > I couldn't see any in tree examples of this being done and my attempts to > do this via registering a platform_driver for ucb1400_core have failed > (probably since this driver is ac97_bus_type, not a platform_driver). > > Can you provide me with info regarding the correct method for passing the > irq to the driver? > > Thanks, > -Graham > static struct ucb1400_pdata pdata = { .irq = IRQ_GPIO(123), }; static struct platform_device ucb1400_core = { .name = "ucb1400_core", .id = -1, .dev = { .platform_data = &pdata, }, }; init() { platform_device_register(&ucb1400_core); } Like this ? btw. you don't have to pass pdata at all ... the logic for auto-detecting IRQ is still there and is active if no pdata are supplied. -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html