Re: [PATCH] stagging:iio:ad9834: add devicetree property support

2016-09-18 Thread Gwenhael Goavec-Merou
Hi, Thanks for the review. I will send a new patch. Gwenhael On 12/09/2016 14:02, Lars-Peter Clausen wrote: Hi, Thanks for the patch. On 09/11/2016 12:52 PM, Gwenhael Goavec-Merou wrote: +static struct ad9834_platform_data *ad9834_parse_dt(struct spi_device *spi) +{ + struct ad9834_plat

Re: [PATCH] stagging:iio:ad9834: add devicetree property support

2016-09-12 Thread Lars-Peter Clausen
Hi, Thanks for the patch. On 09/11/2016 12:52 PM, Gwenhael Goavec-Merou wrote: > +static struct ad9834_platform_data *ad9834_parse_dt(struct spi_device *spi) > +{ > + struct ad9834_platform_data *pdata; > + struct device_node *np = spi->dev.of_node; > + > + pdata = devm_kzalloc(&spi->

[PATCH] stagging:iio:ad9834: add devicetree property support

2016-09-11 Thread Gwenhael Goavec-Merou
ad9834 driver needs some default properties. Currently these parameters are provided through platform_data. This patch adds a function to create this pdata based on device-tree node. Signed-off-by: Gwenhael Goavec-Merou --- drivers/staging/iio/frequency/ad9834.c | 39