]> asedeno.scripts.mit.edu Git - linux.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)
commit68c91e7a4009af758ef144a077d80db1499a7350
tree7717a87fe4049ebe07d47fe726dbd85b039782e3
parentca48139856428313e2e9869c41c92e865ec5470d
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