OpenCloudOS-Kernel/drivers/iio/dac
Lars-Peter Clausen efd597b283 iio: ad5504: Fix setting power-down state
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: 3bbbf150ff ("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>
2021-01-14 20:56:56 +00:00
..
Kconfig iio: dac: ad5686: add support for AD5338R 2020-10-10 16:41:09 +01:00
Makefile iio: dac: ad5770r: Add AD5770R support 2020-03-08 17:28:41 +00:00
ad5064.c iio: dac: ad5064: Fix a few kerneldoc misdemeanours 2020-09-21 18:41:36 +01:00
ad5360.c iio: dac: ad5360: Fix kerneldoc attribute formatting for 'lock' 2020-07-20 09:02:50 +01:00
ad5380.c iio: dac: ad5380: Fix kerneldoc attribute formatting for 'lock' 2020-07-20 09:02:52 +01:00
ad5421.c iio: dac: ad5421: Fix kerneldoc attribute formatting for 'lock' 2020-07-20 09:02:54 +01:00
ad5446.c iio:dac:ad5446: Drop of_match_ptr and CONFIG_OF protections 2020-09-21 18:41:27 +01:00
ad5449.c iio: dac: ad5449: Fix kerneldoc attribute formatting for 'lock' 2020-07-20 09:03:01 +01:00
ad5504.c iio: ad5504: Fix setting power-down state 2021-01-14 20:56:56 +00:00
ad5592r-base.c Second set of features and cleanups for IIO in 5.10 2020-09-22 09:45:11 +02:00
ad5592r-base.h iio: dac: ad5592r-base: Replace indio_dev->mlock with own device lock 2020-05-21 19:37:05 +01:00
ad5592r.c iio:dac:ad5592r: Drop of_match_ptr and ACPI_PTR protections. 2020-09-21 18:41:27 +01:00
ad5593r.c iio:dac:ad5593r: Drop of_match_ptr and ACPI_PTR protections. 2020-09-21 18:41:27 +01:00
ad5624r.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5624r_spi.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad5686-spi.c drivers: iio: dac: Fix wrong license for ADI drivers 2019-02-09 18:46:01 +00:00
ad5686.c iio: dac: ad5686: add support for AD5338R 2020-10-10 16:41:09 +01:00
ad5686.h iio: dac: ad5686: add support for AD5338R 2020-10-10 16:41:09 +01:00
ad5696-i2c.c iio: dac: ad5686: add of_match_table 2020-10-10 16:41:33 +01:00
ad5755.c iio: dac: ad5755: Fix kerneldoc attribute formatting for 'lock' 2020-07-20 09:03:01 +01:00
ad5758.c iio: dac: ad5758: Move and fix-up kerneldoc header and demote unworthy kerneldoc 2020-07-20 09:03:03 +01:00
ad5761.c iio: dac: ad5761: Fix kerneldoc attribute formatting for 'lock' 2020-07-20 09:03:04 +01:00
ad5764.c iio: dac: ad5764: Fix misdocumenting and formatting error 2020-07-20 09:03:06 +01:00
ad5770r.c iio: remove left-over parent assignments 2020-06-14 11:50:04 +01:00
ad5791.c iio: dac: ad5791: Complete 'struct ad5791_chip_info' documentation 2020-07-20 09:03:06 +01:00
ad7303.c iio: dac: ad7303: remove platform data header 2020-10-10 18:03:28 +01:00
ad8801.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
cio-dac.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
dpot-dac.c Merge 5.9-rc5 into staging-next 2020-09-14 06:57:52 +02:00
ds4424.c iio: Remove superfluous of_node assignments 2020-06-14 14:20:08 +01:00
lpc18xx_dac.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ltc1660.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ltc2632.c iio: dac: ltc2632: Fix formatting in kerneldoc struct header 2020-07-20 09:03:16 +01:00
m62332.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
max517.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
max5821.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
mcp4725.c iio:dac:mcp4725: drop of_match_ptr and use generic fw properties 2020-09-21 18:41:28 +01:00
mcp4922.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
stm32-dac-core.c iio: adc: stm32: Simplify with dev_err_probe() 2020-09-03 19:40:50 +01:00
stm32-dac-core.h iio: stm32: Adopt SPDX identifier 2018-01-08 16:03:41 +01:00
stm32-dac.c iio: stm32-dac: Replace indio_dev->mlock with own device lock 2020-09-16 18:51:40 +01:00
ti-dac082s085.c iio:dac:ti-dac082s085: Drop of_match_ptr and CONFIG_OF protections 2020-09-21 18:41:28 +01:00
ti-dac5571.c iio:dac:ti-dac5571: Drop of_match_ptr and CONFIG_OF protections 2020-09-21 18:41:28 +01:00
ti-dac7311.c Replace HTTP links with HTTPS ones: drivers/iio 2020-07-13 15:05:59 +01:00
ti-dac7612.c iio: dac: ti-dac7612: Replace indio_dev->mlock with own device lock 2020-09-16 18:56:22 +01:00
vf610_dac.c iio: Remove superfluous of_node assignments 2020-06-14 14:20:08 +01:00