lkml.org 
[lkml]   [2021]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.14 194/849] drivers: iio: dac: ad5766: Fix dt property name
    Date
    From: Mihail Chindris <mihail.chindris@analog.com>

    commit d9de0fbdeb0103a204055efb69cb5cc8f5f12a6a upstream.

    In the documentation the name for the property is
    output-range-microvolts which is a standard name, therefore this name
    must be used.

    Fixes: fd9373e41b9ba ("iio: dac: ad5766: add driver support for AD5766")
    Signed-off-by: Mihail Chindris <mihail.chindris@analog.com>
    Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
    Link: https://lore.kernel.org/r/20211007080035.2531-5-mihail.chindris@analog.com
    Cc: <Stable@vger.kernel.org>
    Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/iio/dac/ad5766.c | 6 +++---
    1 file changed, 3 insertions(+), 3 deletions(-)

    --- a/drivers/iio/dac/ad5766.c
    +++ b/drivers/iio/dac/ad5766.c
    @@ -503,13 +503,13 @@ static int ad5766_get_output_range(struc
    int i, ret, min, max, tmp[2];

    ret = device_property_read_u32_array(&st->spi->dev,
    - "output-range-voltage",
    + "output-range-microvolts",
    tmp, 2);
    if (ret)
    return ret;

    - min = tmp[0] / 1000;
    - max = tmp[1] / 1000;
    + min = tmp[0] / 1000000;
    + max = tmp[1] / 1000000;
    for (i = 0; i < ARRAY_SIZE(ad5766_span_tbl); i++) {
    if (ad5766_span_tbl[i].min != min ||
    ad5766_span_tbl[i].max != max)

    \
     
     \ /
      Last update: 2021-11-15 23:08    [W:2.067 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site