From: jic23@kernel.org (Jonathan Cameron)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] iio: adc: xilinx: Fix VREFN scale
Date: Sun, 15 Nov 2015 10:42:39 +0000 [thread overview]
Message-ID: <5648619F.4040208@kernel.org> (raw)
In-Reply-To: <1447273478-2530-1-git-send-email-thomas.betker@freenet.de>
On 11/11/15 20:24, Thomas Betker wrote:
> From: Thomas Betker <thomas.betker@rohde-schwarz.com>
>
> The scaling factor for VREFN is 3.0/4096 (not 1.0/4096), just as for
> VREFP. This is not immediately obvious from the specification (Xilinx
> UG480), but has been confirmed by Xilinx support.
>
> Suggested-by: Hartmut Knaack <knaack.h@gmx.de>
> Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Applied to the fixes-togreg branch of iio.git and marked for stable.
Thanks,
Jonathan
> ---
> drivers/iio/adc/xilinx-xadc-core.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/iio/adc/xilinx-xadc-core.c b/drivers/iio/adc/xilinx-xadc-core.c
> index 0370624..02e636a 100644
> --- a/drivers/iio/adc/xilinx-xadc-core.c
> +++ b/drivers/iio/adc/xilinx-xadc-core.c
> @@ -841,6 +841,7 @@ static int xadc_read_raw(struct iio_dev *indio_dev,
> case XADC_REG_VCCINT:
> case XADC_REG_VCCAUX:
> case XADC_REG_VREFP:
> + case XADC_REG_VREFN:
> case XADC_REG_VCCBRAM:
> case XADC_REG_VCCPINT:
> case XADC_REG_VCCPAUX:
>
prev parent reply other threads:[~2015-11-15 10:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-11 20:24 [PATCH] iio: adc: xilinx: Fix VREFN scale Thomas Betker
2015-11-15 10:42 ` 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=5648619F.4040208@kernel.org \
--to=jic23@kernel.org \
--cc=linux-arm-kernel@lists.infradead.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).