linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Paul Kocialkowski <contact@paulk.fr>
Cc: linux-iio@vger.kernel.org, j-keerthy@ti.com,
	Sebastian Reichel <sre@debian.org>
Subject: Re: [PATCH] twl4030-madc: Request processed values in twl4030_get_madc_conversion
Date: Mon, 02 Jun 2014 19:00:06 +0100	[thread overview]
Message-ID: <538CBBA6.30203@kernel.org> (raw)
In-Reply-To: <1400933398.2079.16.camel@aldrin>

On 24/05/14 13:09, Paul Kocialkowski wrote:
> Not setting the raw parameter in the request causes it to be randomly
> initialized to a value that might be different from zero or zero. This leads to
> values that are randomly either raw or processed, making it very difficult to
> make reliable use of the values.
>
> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
This one seems obvious enough to me that I've applied it to the fixes-togreg
branch. Note you should cc the author or if the log makes it clear someone
else has been working with the driver recently, then cc them.
In this case Sebastian.

With quite a few of these mfd element drivers, the chance the relevant author
is still subscribed to the list is next to none (here goes for being proved
wrong ;)

Thanks for the patch!

Jonathan


> ---
>   drivers/iio/adc/twl4030-madc.c |    1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/iio/adc/twl4030-madc.c b/drivers/iio/adc/twl4030-madc.c
> index 7de1c4c..eb86786 100644
> --- a/drivers/iio/adc/twl4030-madc.c
> +++ b/drivers/iio/adc/twl4030-madc.c
> @@ -645,6 +645,7 @@ int twl4030_get_madc_conversion(int channel_no)
>   	req.channels = (1 << channel_no);
>   	req.method = TWL4030_MADC_SW2;
>   	req.active = 0;
> +	req.raw = 0;
>   	req.func_cb = NULL;
>   	ret = twl4030_madc_conversion(&req);
>   	if (ret < 0)
>


  reply	other threads:[~2014-06-02 17:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-24 12:09 [PATCH] twl4030-madc: Request processed values in twl4030_get_madc_conversion Paul Kocialkowski
2014-06-02 18:00 ` Jonathan Cameron [this message]
2014-06-02 18:10   ` Sebastian Reichel
2014-06-02 19:17     ` Paul Kocialkowski
2014-06-02 20:56       ` Jonathan Cameron
2014-06-02 20:54     ` Jonathan Cameron

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=538CBBA6.30203@kernel.org \
    --to=jic23@kernel.org \
    --cc=contact@paulk.fr \
    --cc=j-keerthy@ti.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=sre@debian.org \
    /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).