linux_dsm_epyc7002/drivers/iio/dac
Alexandru Ardelean c8bb10c50d iio: dac: ad5592r: localize locks only where needed in ad5592r_read_raw()
Since there was a recently discovered issue with these locks, it probably
makes sense to cleanup the code a bit, to prevent it from being used as an
example/reference.

This change moves the lock only where it is explicitly needed to protect
resources from potential concurrent accesses.

It also reworks the switch statements to do direct returns vs caching the
return value on a variable.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20200706110259.23947-3-alexandru.ardelean@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-09-21 18:54:18 +01: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: dac: ad5504: Fix formatting errors and demote non-compliant kerneldoc 2020-07-20 09:03:21 +01:00
ad5592r-base.c iio: dac: ad5592r: localize locks only where needed in ad5592r_read_raw() 2020-09-21 18:54:18 +01: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_spi.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad5624r.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07: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: Constify static struct iio_chan_spec 2020-09-03 19:40:47 +01:00
ad5686.h iio: dac: ad5686: Constify static struct iio_chan_spec 2020-09-03 19:40:47 +01:00
ad5696-i2c.c drivers: iio: dac: Fix wrong license for ADI drivers 2019-02-09 18:46:01 +00: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: Complete 'struct ad7303_state' doc 2020-09-21 18:41:36 +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 iio: dac: dpot-dac: Simplify with dev_err_probe() 2020-09-03 19:40:50 +01:00
ds4424.c iio: Remove superfluous of_node assignments 2020-06-14 14:20:08 +01:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09: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
Makefile iio: dac: ad5770r: Add AD5770R support 2020-03-08 17:28:41 +00: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