commit | 6ff0199a1df2f65d708a36aed944c3c11ba198f6 | [log] [tgz] |
---|---|---|
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | Tue Apr 28 14:14:28 2020 +0300 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Tue Jul 07 20:24:11 2020 +0100 |
tree | 936bff4fa20418a648fa0c0b3fc85a4bbcae153f | |
parent | a07a4fe5ff460e99293c0d682421920d54e31d7f [diff] |
iio: adc: ti_am335x_adc: alloc channels via devm_kcalloc() 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 <alexandru.ardelean@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>