linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: "Ivan T. Ivanov" <iivanov@mm-sol.com>,
	Jonathan Cameron <jic23@kernel.org>
Cc: Sachin Kamat <sachin.kamat@linaro.org>,
	Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
	John Stultz <john.stultz@linaro.org>,
	linux-iio@vger.kernel.org, svarbanov@mm-sol.com,
	linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH] iio: inkern: Add of_xlate function to struct iio_dev
Date: Thu, 02 Oct 2014 15:30:31 +0200	[thread overview]
Message-ID: <542D5377.90201@metafoo.de> (raw)
In-Reply-To: <1412253128-32165-1-git-send-email-iivanov@mm-sol.com>

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.

>
> 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 <iivanov@mm-sol.com>

  reply	other threads:[~2014-10-02 13:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-02 12:32 [PATCH] iio: inkern: Add of_xlate function to struct iio_dev Ivan T. Ivanov
2014-10-02 13:30 ` Lars-Peter Clausen [this message]
2014-10-02 13:49   ` Ivan T. Ivanov
2014-10-03 14:31     ` Srinivas Pandruvada
2014-10-03 15:08       ` Ivan T. Ivanov
2014-10-18 11:42 ` Jonathan Cameron
     [not found]   ` <5442522D.40203-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2014-10-18 11:50     ` Lars-Peter Clausen
     [not found]       ` <544253F3.9060002-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
2014-10-18 12:14         ` Jonathan Cameron
     [not found]           ` <54425998.7060808-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2014-10-20 11:22             ` Ivan T. Ivanov
2014-10-18 17:13   ` Srinivas Pandruvada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=542D5377.90201@metafoo.de \
    --to=lars@metafoo.de \
    --cc=iivanov@mm-sol.com \
    --cc=jic23@kernel.org \
    --cc=john.stultz@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sachin.kamat@linaro.org \
    --cc=srinivas.pandruvada@linux.intel.com \
    --cc=svarbanov@mm-sol.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).