iio: adc: ti-adc081c: Use devm managed functions for all of probe()
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 16 May 2021 17:25:17 +0000 (18:25 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 3 Jun 2021 17:24:14 +0000 (18:24 +0100)
commit6c100eb960e785fa327b449ba920d3e83936ae7a
tree19fd4e1985f224886cbf78db31b2858cbe7158b3
parent3c43b6e108d5fc94dd38638b561ac55a661c3adf
iio: adc: ti-adc081c: Use devm managed functions for all of probe()

Simplifies error handling and allows us to drop remove() entirely.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210516172520.1398835-6-jic23@kernel.org
drivers/iio/adc/ti-adc081c.c