diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2020-12-09 13:46:49 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-27 13:05:39 +0300 |
commit | 166bd161d620bf0cd459b76c8da6ca862255c537 (patch) | |
tree | 5f08762a3d32b10a3f2f849dcb4ec1a0214b98bd /drivers/irqchip | |
parent | 5408824636fa0dfedb9ecb0d94abd573131bfbbe (diff) | |
download | linux-166bd161d620bf0cd459b76c8da6ca862255c537.tar.xz |
iio: ad5504: Fix setting power-down state
commit efd597b2839a9895e8a98fcb0b76d2f545802cd4 upstream.
The power-down mask of the ad5504 is actually a power-up mask. Meaning if
a bit is set the corresponding channel is powered up and if it is not set
the channel is powered down.
The driver currently has this the wrong way around, resulting in the
channel being powered up when requested to be powered down and vice versa.
Fixes: 3bbbf150ffde ("staging:iio:dac:ad5504: Use strtobool for boolean values")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20201209104649.5794-1-lars@metafoo.de
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/irqchip')
0 files changed, 0 insertions, 0 deletions