]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commitae81abcb6a490aff04091aed59baf1c290cc657e
tree2953b53b50df85997fc0c2d7105164399456976f
parent91b4b166175066349f01ce67e091355f8f27e4a7
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