]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: adis16209: Remove mutex_lock() and mutex_unlock() calls
authorNarcisa Ana Maria Vasile <narcisaanamaria12@gmail.com>
Wed, 15 Mar 2017 17:00:14 +0000 (19:00 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Mar 2017 11:01:19 +0000 (11:01 +0000)
commit4a9f45d87f266886ede32ab02f2870cb037e19b4
tree2953b53b50df85997fc0c2d7105164399456976f
parenta77e82b00d5631137c9918174d9f0b9b296b5326
staging: iio: adis16209: Remove mutex_lock() and mutex_unlock() calls

The function adis16209_read_raw() is safe to be run in parallel.
The call to adis_read_reg_16() is safe since adis_read_reg() uses the
txrx_lock from struct adis to protect simultaneous changes.

Remove mutex.h inclusion since it is no longer needed.

Signed-off-by: Narcisa Ana Maria Vasile <narcisaanamaria12@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/accel/adis16209.c