diff options
| author | Sergiu Cuciurean <[email protected]> | 2020-09-16 12:25:35 +0300 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2020-09-16 18:56:22 +0100 |
| commit | 20be66c193be1a758c507fe28e8f77ad407d5039 (patch) | |
| tree | 13a4b4d97803087ac877e96bd525cac955240ad3 /tools/perf/scripts/python/bin | |
| parent | 2544ea7bd075948dcb0bdebfae739eb235c69728 (diff) | |
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 <[email protected]>
Signed-off-by: Alexandru Ardelean <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions