From: Jonathan Cameron <jic23@kernel.org>
To: linux-iio@vger.kernel.org
Cc: Rama Krishna Phani A <rphani@codeaurora.org>
Subject: Re: [PATCH] guessing
Date: Sun, 8 Jan 2017 21:03:08 +0000 [thread overview]
Message-ID: <17e808f1-e232-9efc-b27f-fe85dd0b84f2@kernel.org> (raw)
In-Reply-To: <20170108210140.17507-1-jic23@kernel.org>
On 08/01/17 21:01, Jonathan Cameron wrote:
And that wasn't meant to go out with this title.
Sorry.
Jonathan
> ---
> drivers/iio/adc/qcom-spmi-vadc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/adc/qcom-spmi-vadc.c b/drivers/iio/adc/qcom-spmi-vadc.c
> index faaf711325b5..0a19761d656c 100644
> --- a/drivers/iio/adc/qcom-spmi-vadc.c
> +++ b/drivers/iio/adc/qcom-spmi-vadc.c
> @@ -641,7 +641,7 @@ static int vadc_scale_therm(struct vadc_priv *vadc,
> vadc_scale_calib(vadc, adc_code, prop, &voltage);
>
> if (prop->calibration == VADC_CALIB_ABSOLUTE)
> - voltage /= 1000;
> + voltage = div64_s64(voltage, 1000);
>
> vadc_map_voltage_temp(adcmap_100k_104ef_104fb,
> ARRAY_SIZE(adcmap_100k_104ef_104fb),
>
prev parent reply other threads:[~2017-01-08 21:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-08 21:01 [PATCH] guessing Jonathan Cameron
2017-01-08 21:03 ` Jonathan Cameron [this message]
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=17e808f1-e232-9efc-b27f-fe85dd0b84f2@kernel.org \
--to=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=rphani@codeaurora.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).