aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/trigger/stm32-timer-trigger.c
diff options
context:
space:
mode:
authorKatie Dunne <[email protected]>2017-09-18 22:52:40 +0000
committerJonathan Cameron <[email protected]>2017-09-24 14:52:03 +0000
commitba272e3bbeaee3b34ca6c616f7ad8d3c65f33f79 (patch)
tree9f31fd175d3f9fbd16310c7b520feebada0f72b2 /drivers/iio/trigger/stm32-timer-trigger.c
parentstaging: iio: ade7753: replace mlock with driver private lock (diff)
downloadkernel-ba272e3bbeaee3b34ca6c616f7ad8d3c65f33f79.tar.gz
kernel-ba272e3bbeaee3b34ca6c616f7ad8d3c65f33f79.zip
Staging: iio: meter: ade7759: update locking method for write frequency
iio_dev->mlock is to be used only by the IIO core for protecting device mode changes between INDIO_DIRECT and INDIO_BUFFER. This patch replaces the use of mlock with the already established buf_lock mutex. Introducing an 'unlocked' spi_write_reg_16 function to be used by ade7759_write_frequency avoids nested locks and maintains atomicity between bus and device frequency changes. Based on the solution found in ade7754 patch here: https://marc.info/?l=linux-iio&m=149086659008991&w=2 Signed-off-by: Katie Dunne <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions