Re: [PATCH 1/2] iio: adc: ad7298: convert probe to device-managed functions

2020-11-28 Thread Jonathan Cameron
On Fri, 27 Nov 2020 11:40:37 +0200 Alexandru Ardelean wrote: > This change converts the probe of this driver to use device-managed > register functions, and a devm_add_action_or_reset() for the regulator > disable. > > With this, the exit & error paths can be removed. > Another side-effect is th

[PATCH 1/2] iio: adc: ad7298: convert probe to device-managed functions

2020-11-27 Thread Alexandru Ardelean
This change converts the probe of this driver to use device-managed register functions, and a devm_add_action_or_reset() for the regulator disable. With this, the exit & error paths can be removed. Another side-effect is that this should avoid some static-analyzer's check with respect to a potenti