]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: ade7753: expanding buffer lock to cover both buffer and state protection
authorHimanshi Jain <himshijain.hj@gmail.com>
Sat, 30 Sep 2017 20:05:21 +0000 (01:35 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 9 Oct 2017 19:50:40 +0000 (20:50 +0100)
commitf2204c6b10801f92cea7c217aa82c3a7157e8a19
tree7717a87fe4049ebe07d47fe726dbd85b039782e3
parenta79406b949fafae334da2e4085649e41079abbf4
staging: iio: ade7753: expanding buffer lock to cover both buffer and state protection

Dropping the extra lock (used for protecting the write frequency) by
expanding the buffer lock to cover both buffer and state protection.

Doing this by introducing a new function (__ade7753_spi_write_reg_16)
making buffer changes without locking the state, to avoid nested locks
while making device frequency changes.

Signed-off-by: Himanshi Jain <himshijain.hj@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/meter/ade7753.c