Re: [PATCH 1/3] iio: adc: ti_am335x_adc: alloc channels via devm_kcalloc()

2020-07-05 Thread Jonathan Cameron
On Tue, 28 Apr 2020 14:14:28 +0300 Alexandru Ardelean wrote: > This change attaches the life-cycle of the channels array to the parent > device object that is attached to the IIO device. > This way we can remove from the cleanup code, the explicit > tiadc_channels_remove() which simply does a

[PATCH 1/3] iio: adc: ti_am335x_adc: alloc channels via devm_kcalloc()

2020-04-28 Thread Alexandru Ardelean
This change attaches the life-cycle of the channels array to the parent device object that is attached to the IIO device. This way we can remove from the cleanup code, the explicit tiadc_channels_remove() which simply does a kfree() on the channels array. Signed-off-by: Alexandru Ardelean ---