diff options
| author | Alexandru Ardelean <[email protected]> | 2020-07-06 14:02:59 +0300 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2020-09-21 18:54:18 +0100 |
| commit | c8bb10c50d60cf4bd083eb7f7956999942694c90 (patch) | |
| tree | 62911c388a6de869ab6b715177f5f05ac4f0f384 /scripts/const_structs.checkpatch | |
| parent | b004fe33034cc64f72c20923be71cf1e6c9a624c (diff) | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions