OSDN Git Service

iio:dac:ad5064 mlock cleanup - move to a local lock.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 20 Feb 2019 18:23:44 +0000 (18:23 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:19:57 +0000 (20:19 +0100)
commit20d9248e704a3a852cfc35a4003732349cb7cf3d
tree0f5c42b35bb1d26b6a8da1a0b373a514fc99c6d9
parentd626be00e856c0cec3b5f420e7f061829538d63b
iio:dac:ad5064 mlock cleanup - move to a local lock.

indio_dev->mlock is intended to protect state transitions in
the core. It's scope is tightly defined. For device specific
uses such as those made here, we should define a local lock
allowing the scope of the lock to be defined near to what it
is protecting.

These mlock changes can be non obvious, but given we don't do
anything other than direct for DACs, these ones are easy to do.

If anyone wants to help with this particular effort it would
be most welcome!

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad5064.c