iio: adc: ad7887: convert probe to device-managed functions
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Fri, 13 Nov 2020 09:16:48 +0000 (11:16 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 14 Nov 2020 16:44:59 +0000 (16:44 +0000)
commit24b284984e2d14aedc11b2f0211660df54e3b338
tree08a86d6f05cd459023fc035284c43e53f727d6e6
parent89d1f72570027aa9724f00454f51885e27221413
iio: adc: ad7887: convert probe to device-managed functions

This is conversion of the driver to use device-managed functions.
The IIO registration and triggered buffer setup both have device-managed
versions.
The regulator disable needs to be handled via an action_or_reset handler.

With these changes, the remove hook is removed, and the error path is
cleaned up in probe.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20201113091648.148589-1-alexandru.ardelean@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7887.c