Re: [PATCH] gpio: Enable pcf857x GPIO expander for Device Tree

2013-06-19 Thread Linus Walleij
On Tue, Jun 18, 2013 at 12:57 PM, Stijn Devriendt high...@gmail.com wrote: On Thu, Jun 6, 2013 at 4:05 PM, Archit Taneja arc...@ti.com wrote: +static struct pcf857x_platform_data *of_gpio_pcf857x(struct device *dev) +{ + struct pcf857x_platform_data *pdata; + int r; + +

Re: [PATCH] gpio: Enable pcf857x GPIO expander for Device Tree

2013-06-19 Thread Linus Walleij
On Mon, Jun 17, 2013 at 1:46 PM, Archit Taneja arc...@ti.com wrote: On Monday 17 June 2013 02:35 PM, Linus Walleij wrote: Just a query, there is an example in gpio.txt in the gpio bindings documentation which sets #gpio-cells as 1. Is this is a wrong example, or are 1 cell gpio controllers

Re: [PATCH] gpio: Enable pcf857x GPIO expander for Device Tree

2013-06-17 Thread Archit Taneja
Hi Linus, On Thursday 06 June 2013 07:35 PM, Archit Taneja wrote: Add code to parse the GPIO expander Device Tree node and extract platform data out of it, and populate the struct 'pcf857x_platform_data' maintained by the driver. This enables devices to reference the gpio expander from Device

Re: [PATCH] gpio: Enable pcf857x GPIO expander for Device Tree

2013-06-17 Thread Linus Walleij
On Thu, Jun 6, 2013 at 4:05 PM, Archit Taneja arc...@ti.com wrote: Add code to parse the GPIO expander Device Tree node and extract platform data out of it, and populate the struct 'pcf857x_platform_data' maintained by the driver. This enables devices to reference the gpio expander from Device

Re: [PATCH] gpio: Enable pcf857x GPIO expander for Device Tree

2013-06-17 Thread Archit Taneja
Hi, On Monday 17 June 2013 02:35 PM, Linus Walleij wrote: On Thu, Jun 6, 2013 at 4:05 PM, Archit Taneja arc...@ti.com wrote: Add code to parse the GPIO expander Device Tree node and extract platform data out of it, and populate the struct 'pcf857x_platform_data' maintained by the driver. This

[PATCH] gpio: Enable pcf857x GPIO expander for Device Tree

2013-06-06 Thread Archit Taneja
Add code to parse the GPIO expander Device Tree node and extract platform data out of it, and populate the struct 'pcf857x_platform_data' maintained by the driver. This enables devices to reference the gpio expander from Device Tree. Add DT binding info in Documentation. CC: Grant Likely