]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adis16209: Use Managed device functions
authorNuno Sá <nuno.sa@analog.com>
Tue, 15 Sep 2020 12:02:50 +0000 (14:02 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 16 Sep 2020 18:06:08 +0000 (19:06 +0100)
commita00738c5b6390a3012314eaf61b15591ead97e26
tree142e0fcddfe31937078a1a515446e6d18d6f544c
parenta1b9036e9cf8ff1e4cd744075f70127c7bebe486
iio: adis16209: 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-3-nuno.sa@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adis16209.c