iio: adis16480: Use Managed device functions
authorNuno Sá <nuno.sa@analog.com>
Tue, 15 Sep 2020 12:02:55 +0000 (14:02 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 16 Sep 2020 18:06:09 +0000 (19:06 +0100)
commit514f641b3b2af794df90d61f4346e5858177665d
treedab4a5d9202db8ebc6a73b928dc3f925c65baba0
parentfa623cddc040930207b57fa0c4767bbb8f7ac8a1
iio: adis16480: 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-8-nuno.sa@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis16480.c