diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2020-04-03 15:27:13 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-04-19 17:50:01 +0100 |
commit | e44ec7794d88f918805d700240211a9ec05ed89d (patch) | |
tree | 96ad7bc4e0ea500beaa638fc02a5a89e9f6e6944 /lib/mpi/mpiutil.c | |
parent | dd6230ba1d6b413f1a60301dbd554b90870aabc6 (diff) |
iio: xilinx-xadc: Fix ADC-B powerdown
The check for shutting down the second ADC is inverted. This causes it to
be powered down when it should be enabled. As a result channels that are
supposed to be handled by the second ADC return invalid conversion results.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Fixes: bdc8cda1d010 ("iio:adc: Add Xilinx XADC driver")
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions