Skip to content
Commit 2e2c8d22 authored by Varsha Rao's avatar Varsha Rao Committed by Jonathan Cameron
Browse files

staging: iio: adis16240: Remove mutex_lock() and mutex_unlock() function call.



Remove mutex_lock() and mutex_unlock() function calls, as the
adis16240_spi_read_signed() function can be run parallel and safely
multiple times. Also remove the mutex.h header file and comment, which
are no longer required.

As indio_dev is declared and initialized in adis16240_spi_read_signed(),
again declaration to same type and initialization to same value is not
required, remove it from adis16240_read_12bit_signed().

Simplify the return logic, by merging assignment and return into a single
line.

Signed-off-by: default avatarVarsha Rao <rvarsha016@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 01d2de39
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment