]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: adis16240: Use Managed device functions
authorNuno Sá <nuno.sa@analog.com>
Tue, 15 Sep 2020 12:02:57 +0000 (14:02 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 16 Sep 2020 18:06:10 +0000 (19:06 +0100)
commit061bc6120398ebcd9b45418310a01ca4d20be4ba
tree7a809c2824672e3c74d72749eba069b7b682855c
parent0c7e60b0147c3486c50eff9ad4b6a7e950322d87
staging: iio: adis16240: Use Managed device functions

Use the adis managed device functions to setup the buffer and the trigger.
The ultimate goal will be to completely drop the non devm version from
the lib.

Since we are here, drop the `.remove` callback by further using devm
functions.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20200915120258.161587-10-nuno.sa@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/accel/adis16240.c