From mboxrd@z Thu Jan 1 00:00:00 1970 From: Srinivas Pandruvada Subject: Re: [PATCH] iio: inkern: Add of_xlate function to struct iio_dev Date: Fri, 03 Oct 2014 07:31:57 -0700 Message-ID: <1412346717.2987.5.camel@spandruv-hsb-test> References: <1412253128-32165-1-git-send-email-iivanov@mm-sol.com> <542D5377.90201@metafoo.de> <1412257785.1027.40.camel@iivanov-dev> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1412257785.1027.40.camel@iivanov-dev> Sender: linux-iio-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Ivan T. Ivanov" Cc: Lars-Peter Clausen , Jonathan Cameron , Sachin Kamat , John Stultz , linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, svarbanov-NEYub+7Iv8PQT0dZR+AlfA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-arm-msm@vger.kernel.org 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 returns > > > the appropriate index in registered IIO channels array. > > > > Do you have an example of a device that doesn't want to use the default > > mapping? If yes please include it in the commit message, otherwise it is > > fairly hard to say whether this makes sense or not. > > Still not mainlined. You can find more detailed description of the > issue here[1] and driver here[2]. I see your need. I wonder this mapping be done in individual client driver instead of creating another callback. Thanks, Srinivas > > Regards, > Ivan > > [1] https://lkml.org/lkml/2014/10/2/123 > [2] http://www.spinics.net/lists/devicetree/msg50717.html > >