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

Simplifies error handling and lets us drop remove() entirely.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Bogdan Pricop <bogdan.pricop@emutex.com>
Reviewed-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210516172520.1398835-8-jic23@kernel.org
drivers/iio/adc/ti-adc108s102.c