Skip to content
Commit dba968c4 authored by Gargi Sharma's avatar Gargi Sharma Committed by Jonathan Cameron
Browse files

staging: iio: ad7280: Replace mlock with driver private lock



The IIO subsystem is redefining iio_dev->mlock to be used by
the IIO core only for protecting device operating mode changes.
ie. Changes between INDIO_DIRECT_MODE, INDIO_BUFFER_* modes.

In this driver, mlock was being used to protect hardware state
changes.  Replace it with a lock in the devices global data.

Signed-off-by: default avatarGargi Sharma <gs051095@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 2b7cb7be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment