summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorGargi Sharma2017-03-30 11:33:46 +0200
committerJonathan Cameron2017-03-30 20:20:38 +0200
commitb71244b62be470327a59fe940587ccb0811cf8d7 (patch)
treef20f84ab971ae91c70005174d18da7a90a66a31e /drivers/iio
parentdrivers: iio: chemical: replace comma with a semicolon (diff)
downloadkernel-qcow2-linux-b71244b62be470327a59fe940587ccb0811cf8d7.tar.gz
kernel-qcow2-linux-b71244b62be470327a59fe940587ccb0811cf8d7.tar.xz
kernel-qcow2-linux-b71244b62be470327a59fe940587ccb0811cf8d7.zip
staging: iio: update locking method during frequency writes
The driver needs to insure atomicity during frequency changes of bus and device. The iiodev->mlock as used was not doing that. Replace it with the drivers existing buffer lock and introduce an auxiliary spi_write() that does not hold the lock. Signed-off-by: Gargi Sharma <gs051095@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
0 files changed, 0 insertions, 0 deletions