2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 20:23:57 +08:00
linux-next/drivers/iio/dac
Sergiu Cuciurean 20be66c193 iio: dac: ti-dac7612: Replace indio_dev->mlock with own device lock
As part of the general cleanup of indio_dev->mlock, this change replaces
it with a local lock on the device's state from potential concurrent write
accesses from userspace. The write operation requires an SPI write, then
toggling of a GPIO, so the lock aims to protect the sanity of the entire
sequence of operation.

This is part of a bigger cleanup.
Link: https://lore.kernel.org/linux-iio/CA+U=Dsoo6YABe5ODLp+eFNPGFDjk5ZeQEceGkqjxXcVEhLWubw@mail.gmail.com/

Signed-off-by: Sergiu Cuciurean <sergiu.cuciurean@analog.com>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20200916092535.76527-1-alexandru.ardelean@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-09-16 18:56:22 +01:00
..
ad5064.c iio: dac: ad5064: Value returned by ad5064_vref_name may not be 'const * const' 2020-07-20 09:02:57 +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: Complete 'struct ad5446_state' doc and demote unworthy kerneldocs 2020-07-20 09:02:59 +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: fix unbalanced mutex unlocks in ad5592r_read_raw() 2020-07-22 14:51:54 +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: Fix a typo in the name of a function 2020-05-03 09:47:21 +01:00
ad5593r.c iio: dac: ad5593r: Fix a typo in MODULE_DESCRIPTION 2020-05-03 09:47:21 +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: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +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: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +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 Replace HTTP links with HTTPS ones: drivers/iio 2020-07-13 15:05:59 +01:00
ti-dac5571.c iio: dac: dac5571: Support powerdown for multi-channel 2020-09-03 19:40:44 +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