diff options
| author | Linus Walleij <linus.walleij@linaro.org> | 2021-03-23 13:27:05 +0100 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-04-07 08:35:51 +0100 |
| commit | b3b64e2c1575da5f290e75e2a1d9cac307812222 (patch) | |
| tree | 9cea6307a5e1c1172c448008cc6b026adeb885c6 /include/linux/debugobjects.h | |
| parent | 3e55bb6f2ac0bbd7ab8e5bde7b4f8b574afe2c52 (diff) | |
| download | cachepc-linux-b3b64e2c1575da5f290e75e2a1d9cac307812222.tar.gz cachepc-linux-b3b64e2c1575da5f290e75e2a1d9cac307812222.zip | |
iio: Fix iio_read_channel_processed_scale()
The code was checking if (ret) from the processed
channel readout, not smart, we need to check if (ret < 0)
as this will likely be something like IIO_VAL_INT.
Fixes: 635ef601b238 ("iio: Provide iio_read_channel_processed_scale() API")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20210323122705.1326362-1-linus.walleij@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
