]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit51587903ac27c66490b643fe3a3b9d6290d6beeb
tree0f5c42b35bb1d26b6a8da1a0b373a514fc99c6d9
parent5d0392e72da31ec8313181777df3cf4c551d8712
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