staging:iio:cdc:ade7746 replace mlock with driver private lock
authorAishwarya Pant <aishpant@gmail.com>
Mon, 13 Mar 2017 22:04:25 +0000 (03:34 +0530)
committerJonathan Cameron <jic23@kernel.org>
Wed, 15 Mar 2017 21:56:50 +0000 (21:56 +0000)
commit9854a1b5c46573d06b7b053aa78213b7a22bfacf
tree762f8372d53491f188ae05c711f067758b916acc
parent0bdd35bd955726eb9983d0750e97e2f23e43c818
staging:iio:cdc:ade7746 replace mlock with driver private lock

The IIO subsystem is redefining iio_dev mlock to be used by IIO core
only for protecting device operating mode changes.

In driver ad7746 wherever mlock was used to protect hardware state
changes, it has been replaced with a driver private lock.

Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/cdc/ad7746.c