]> asedeno.scripts.mit.edu Git - linux.git/commit
iio: adc: ti-ads7950: Fix improper use of mlock
authorJustin Chen <justinpopo6@gmail.com>
Thu, 28 Feb 2019 22:16:48 +0000 (14:16 -0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:19:41 +0000 (20:19 +0100)
commitabbde2792999c9ad3514dd25d7f8d9a96034fe16
treea095942eb1564eab08838b695768564376653d73
parentbe35d281da6af5f147383f06d050426901b2d25f
iio: adc: ti-ads7950: Fix improper use of mlock

Indio->mlock is used for protecting the different iio device modes.
It is currently not being used in this way. Replace the lock with
an internal lock specifically used for protecting the SPI transfer
buffer.

Signed-off-by: Justin Chen <justinpopo6@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-ads7950.c