Skip to content
Commit 755d0da4 authored by Arushi Singhal's avatar Arushi Singhal Committed by Jonathan Cameron
Browse files

staging: ad7606: 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 avatarArushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 64822be4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment