Re: [[PATCH v2] 2/2] Altera Modular ADC driver support

2015-09-05 Thread Jonathan Cameron
On 01/09/15 22:49, Chee Nouk Phoo wrote: > From: Chee Nouk Phoon > > Altera Modular ADC is soft IP that wraps the hardened ADC block in a Max10 > device. It can be configured to dual ADC mode that supports two channel > synchronous sampling or independent single ADCs. ADC sampled values will be >

Re: [[PATCH v2] 2/2] Altera Modular ADC driver support

2015-09-04 Thread Shubhrajyoti Datta
> +static int alt_modular_adc_probe(struct platform_device *pdev) > +{ > + struct altera_adc *adc; > + struct device_node *np = pdev->dev.of_node; > + struct iio_dev *indio_dev; > + struct resource *mem; > + int ret; > + > + if (!np) > + return -ENO