From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ivan T. Ivanov" Subject: Re: [PATCH v2] iio: inkern: Add of_xlate function to struct iio_info Date: Mon, 03 Nov 2014 12:07:04 +0200 Message-ID: <1415009224.407.13.camel@mm-sol.com> References: <1413991783-24562-1-git-send-email-iivanov@mm-sol.com> <5447CDFA.5030407@metafoo.de> <544B75B8.1010505@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <544B75B8.1010505-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Sender: linux-iio-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jonathan Cameron Cc: Lars-Peter Clausen , Hartmut Knaack , Peter Meerwald , Srinivas Pandruvada , Sachin Kamat , Thomas Gleixner , linux-iio-u79uwXL29TY76Z2rM5mHXA@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 Sat, 2014-10-25 at 11:04 +0100, Jonathan Cameron wrote: > On 22/10/14 16:32, Lars-Peter Clausen wrote: > > On 10/22/2014 05:29 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. > > > > > > Add simple translation function, suitable for the most 1:1 > > > mapped channels in IIO chips, and use it when driver did not > > > provide custom implementation. > > > > > > Signed-off-by: Ivan T. Ivanov > > > > Reviewed-by: Lars-Peter Clausen > > > Applied to the togreg branch of iio.git - initially pushed out as testing > for the autobuilders to play with it. Thank you. Probably my git skills failed me, but I can not find it in aforementioned branches. Is it publicly pushed? Regards, Ivan