diff options
| author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2020-04-28 14:14:28 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-07-07 20:24:11 +0100 |
| commit | 6ff0199a1df2f65d708a36aed944c3c11ba198f6 (patch) | |
| tree | 936bff4fa20418a648fa0c0b3fc85a4bbcae153f /tools/perf/scripts/python/mem-phys-addr.py | |
| 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>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
