lkml.org 
[lkml]   [2015]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.19.y-ckt 022/146] iio: adc: xilinx: Fix VREFP scale
    Date
    3.19.8-ckt2 -stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Thomas Betker <thomas.betker@rohde-schwarz.com>

    commit 00db4e52f4541965f7fda225eb458a75f892017b upstream.

    The scaling factor for VREFP is 3.0/4096, not 1.0/4096; fix this to get
    correct readings.

    Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
    Signed-off-by: Jonathan Cameron <jic23@kernel.org>
    Signed-off-by: Kamal Mostafa <kamal@canonical.com>
    ---
    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 0ad7b50..6fa629b 100644
    --- a/drivers/iio/adc/xilinx-xadc-core.c
    +++ b/drivers/iio/adc/xilinx-xadc-core.c
    @@ -856,6 +856,7 @@ static int xadc_read_raw(struct iio_dev *indio_dev,
    switch (chan->address) {
    case XADC_REG_VCCINT:
    case XADC_REG_VCCAUX:
    + case XADC_REG_VREFP:
    case XADC_REG_VCCBRAM:
    case XADC_REG_VCCPINT:
    case XADC_REG_VCCPAUX:
    --
    1.9.1


    \
     
     \ /
      Last update: 2015-06-18 02:01    [W:2.655 / U:25.500 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site