Re: [PATCH] iio: inkern: Add of_xlate function to struct iio_dev

2014-10-20 Thread Ivan T. Ivanov
On Sat, 2014-10-18 at 13:14 +0100, Jonathan Cameron wrote: > On 18/10/14 12:50, Lars-Peter Clausen wrote: > > On 10/18/2014 01:42 PM, Jonathan Cameron wrote: > > > On 02/10/14 13:32, Ivan T. Ivanov wrote: > > > > When #iio-cells is greater than '0', the driver could provide > > > > a custom of

Re: [PATCH] iio: inkern: Add of_xlate function to struct iio_dev

2014-10-18 Thread Srinivas Pandruvada
On Sat, 2014-10-18 at 12:42 +0100, Jonathan Cameron wrote: > On 02/10/14 13:32, Ivan T. Ivanov wrote: > > When #iio-cells is greater than '0', the driver could provide > > a custom of_xlate function that reads the *args* and returns > > the appropriate index in registered IIO channels array. > > >

Re: [PATCH] iio: inkern: Add of_xlate function to struct iio_dev

2014-10-18 Thread Jonathan Cameron
On 18/10/14 12:50, Lars-Peter Clausen wrote: > On 10/18/2014 01:42 PM, Jonathan Cameron wrote: >> On 02/10/14 13:32, Ivan T. Ivanov wrote: >>> When #iio-cells is greater than '0', the driver could provide >>> a custom of_xlate function that reads the *args* and returns >>> the appropriate index in

Re: [PATCH] iio: inkern: Add of_xlate function to struct iio_dev

2014-10-18 Thread Lars-Peter Clausen
On 10/18/2014 01:42 PM, Jonathan Cameron wrote: On 02/10/14 13:32, Ivan T. Ivanov wrote: When #iio-cells is greater than '0', the driver could provide a custom of_xlate function that reads the *args* and returns the appropriate index in registered IIO channels array. Add simple translation func

Re: [PATCH] iio: inkern: Add of_xlate function to struct iio_dev

2014-10-18 Thread Jonathan Cameron
On 02/10/14 13:32, Ivan T. Ivanov wrote: > When #iio-cells is greater than '0', the driver could provide > a custom of_xlate function that reads the *args* and returns > the appropriate index in registered IIO channels array. > > Add simple translation function, suitable for the most 1:1 > mapped

Re: [PATCH] iio: inkern: Add of_xlate function to struct iio_dev

2014-10-03 Thread Ivan T. Ivanov
On Fri, 2014-10-03 at 07:31 -0700, Srinivas Pandruvada wrote: > On Thu, 2014-10-02 at 16:49 +0300, Ivan T. Ivanov wrote: > > On Thu, 2014-10-02 at 15:30 +0200, Lars-Peter Clausen wrote: > > > On 10/02/2014 02:32 PM, Ivan T. Ivanov wrote: > > > > When #iio-cells is greater than '0', the driver could

Re: [PATCH] iio: inkern: Add of_xlate function to struct iio_dev

2014-10-03 Thread Srinivas Pandruvada
On Thu, 2014-10-02 at 16:49 +0300, Ivan T. Ivanov wrote: > On Thu, 2014-10-02 at 15:30 +0200, Lars-Peter Clausen wrote: > > On 10/02/2014 02:32 PM, Ivan T. Ivanov wrote: > > > When #iio-cells is greater than '0', the driver could provide > > > a custom of_xlate function that reads the *args* and re

Re: [PATCH] iio: inkern: Add of_xlate function to struct iio_dev

2014-10-02 Thread Ivan T. Ivanov
On Thu, 2014-10-02 at 15:30 +0200, Lars-Peter Clausen wrote: > On 10/02/2014 02:32 PM, Ivan T. Ivanov wrote: > > When #iio-cells is greater than '0', the driver could provide > > a custom of_xlate function that reads the *args* and returns > > the appropriate index in registered IIO channels array.

Re: [PATCH] iio: inkern: Add of_xlate function to struct iio_dev

2014-10-02 Thread Lars-Peter Clausen
On 10/02/2014 02:32 PM, Ivan T. Ivanov wrote: When #iio-cells is greater than '0', the driver could provide a custom of_xlate function that reads the *args* and returns the appropriate index in registered IIO channels array. Do you have an example of a device that doesn't want to use the defaul