Alexandru Ardelean
3c53080588
iio: adc: ti_am335x_adc: alloc kfifo & IRQ via devm_ functions
...
This change attaches the life-cycle of the kfifo buffer & IRQ to the
parent-device. This in turn cleans up the exit & error paths, since we
don't need to explicitly cleanup these resources.
The main intent here is to remove the explicit cleanup of the
'indio_dev->buffer' via 'iio_kfifo_free(indio_dev->buffer);'.
As we want to add support for multiple buffers per IIO device, having it
exposed like this makes it tricky to consider a safe backwards compatible
approach for it.
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2020-07-07 20:24:11 +01:00
..
2020-06-10 14:09:08 -07:00
2020-06-04 19:47:11 -07:00
2020-06-09 09:39:14 -07:00
2020-06-02 15:29:19 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 10:04:47 -07:00
2020-06-11 16:07:33 -07:00
2020-06-03 16:27:18 -07:00
2020-06-07 10:59:32 -07:00
2020-06-10 16:05:54 -07:00
2020-06-10 16:05:54 -07:00
2020-06-10 11:42:19 -07:00
2020-06-09 19:11:22 -07:00
2020-05-28 10:31:10 +02:00
2020-06-14 11:49:59 +01:00
2020-06-10 14:04:39 -07:00
2020-06-05 12:39:30 -07:00
2020-06-11 11:02:13 -07:00
2020-06-04 19:06:23 -07:00
2020-05-28 18:02:40 +09:00
2020-06-10 11:03:04 -07:00
2020-06-09 09:39:14 -07:00
2020-06-01 11:39:15 +02:00
2020-05-29 17:36:02 +09:00
2020-06-11 20:02:46 +02:00
2020-06-07 10:59:32 -07:00
2020-06-07 09:42:16 -07:00
2020-06-11 18:17:48 -07:00
2020-06-10 13:51:47 -07:00
2020-06-03 15:00:05 -07:00
2020-05-28 07:59:45 -07:00
2020-06-07 10:59:32 -07:00
2020-06-10 11:42:19 -07:00
2020-07-07 20:24:11 +01:00
2020-06-09 09:39:14 -07:00
2020-06-14 11:49:59 +01:00
2020-06-10 14:04:39 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 19:11:22 -07:00
2020-06-04 11:03:45 -07:00
2020-06-02 15:29:19 -07:00
2020-06-09 09:39:13 -07:00
2020-06-10 22:43:57 -05:00
2020-06-05 15:45:03 -07:00
2020-06-09 09:39:14 -07:00
2020-05-28 14:18:11 +02:00
2020-06-05 14:00:30 -07:00
2020-06-10 13:42:09 -07:00
2020-06-10 11:42:19 -07:00
2020-06-10 13:24:40 -07:00
2020-06-10 13:42:09 -07:00
2020-06-01 12:00:10 -07:00
2020-06-05 20:02:09 -04:00
2020-06-08 11:05:57 -07:00
2020-06-11 16:07:33 -07:00
2020-05-27 11:09:26 +02:00
2020-06-07 10:53:36 -07:00
2020-06-01 13:10:15 +05:30
2020-06-09 09:39:14 -07:00
2020-06-07 10:59:32 -07:00
2020-06-08 12:05:31 -07:00
2020-06-06 11:01:58 -07:00
2020-06-11 12:53:23 -07:00
2020-05-25 13:28:20 +02:00
2020-06-07 16:13:43 -07:00
2020-06-14 11:49:56 +01:00
2020-06-10 11:28:35 -07:00
2020-05-25 10:59:29 +02:00
2020-05-25 17:55:17 -07:00
2020-06-04 19:06:26 -07:00
2020-06-01 13:01:44 +01:00
2020-06-08 13:01:08 -07:00
2020-06-07 10:59:32 -07:00
2020-06-08 13:01:08 -07:00
2020-06-07 16:11:23 -07:00
2020-06-08 12:05:31 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-08 13:01:08 -07:00
2020-06-07 10:59:32 -07:00
2020-06-14 11:50:04 +01:00
2020-06-05 15:11:50 -07:00
2020-06-09 09:39:14 -07:00
2020-06-07 09:42:16 -07:00
2020-06-09 09:39:14 -07:00
2020-06-10 19:14:18 -07:00
2020-06-06 16:26:47 -04:00
2020-06-10 19:14:18 -07:00
2020-06-11 13:25:53 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 06:42:06 -04:00
2020-05-27 12:18:49 +02:00
2020-06-04 10:50:22 -07:00
2020-06-10 14:46:54 -07:00