Re: [PATCH] staging: iio: meter: Replace mlock with driver private buf_lock

2017-04-02 Thread Jonathan Cameron
On 31/03/17 03:47, Arushi Singhal wrote: > 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 execute spi_write directly. > > Signed-off-by: Arushi Singhal

[PATCH] staging: iio: meter: Replace mlock with driver private buf_lock

2017-03-30 Thread Arushi Singhal
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 execute spi_write directly. Signed-off-by: Arushi Singhal ---