Alexandru Ardelean
78289b4a58
iio: core: pass parent device as parameter during allocation
...
The change passes the parent device to the iio_device_alloc() call. This
also updates the devm_iio_device_alloc() call to consider the device object
as the parent device by default.
Having it passed like this, should ensure that any IIO device object
already has a device object as parent, allowing for neater control, like
passing the 'indio_dev' object for other stuff [like buffers/triggers/etc],
and potentially creating iiom_xxx(indio_dev) functions.
With this patch, only the 'drivers/platform/x86/toshiba_acpi.c' needs an
update to pass the parent object as a parameter.
In the next patch all devm_iio_device_alloc() calls will be handled.
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2020-06-14 11:49:56 +01:00
..
2020-05-30 17:39:19 +03:00
2019-06-19 17:09:55 +02:00
2019-07-30 14:12:51 +03:00
2020-05-30 17:39:19 +03:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:32 -07:00
2019-06-19 17:09:55 +02:00
2020-05-07 19:37:23 +03:00
2020-06-02 12:56:58 -07:00
2019-06-19 17:09:55 +02:00
2020-06-01 12:27:25 +03:00
2019-06-12 11:54:16 +03:00
2019-10-15 10:55:10 +03:00
2019-09-07 21:16:09 +03:00
2020-06-01 12:27:25 +03:00
2019-06-05 17:36:37 +02:00
2020-02-10 17:47:38 +02:00
2020-05-15 15:53:06 +03:00
2020-04-10 15:36:22 -07:00
2020-04-10 15:36:22 -07:00
2020-04-10 15:36:22 -07:00
2020-04-10 15:36:22 -07:00
2019-07-14 16:51:47 -07:00
2020-04-10 15:36:22 -07:00
2020-04-10 15:36:22 -07:00
2019-05-30 11:26:35 -07:00
2019-07-14 16:51:47 -07:00
2019-06-19 17:09:55 +02:00
2020-05-15 15:53:06 +03:00
2020-05-07 19:39:32 +03:00
2019-05-30 11:26:35 -07:00
2019-05-21 11:28:39 +02:00
2019-06-05 17:37:14 +02:00
2020-03-20 14:44:47 +02:00
2019-10-15 10:55:09 +03:00
2019-07-29 18:31:48 +03:00
2019-05-21 11:28:39 +02:00
2020-05-30 17:43:31 +03:00
2019-10-21 12:17:30 +03:00
2020-02-28 12:44:11 +02:00
2019-05-30 11:26:35 -07:00
2019-07-14 16:51:47 -07:00
2020-01-10 11:57:22 +02:00
2019-08-01 18:03:02 +03:00
2019-10-15 10:55:10 +03:00
2019-10-15 10:55:10 +03:00
2019-10-15 10:55:10 +03:00
2020-04-20 14:47:45 +03:00
2020-04-06 10:14:39 -07:00
2020-01-10 11:57:21 +02:00
2020-01-31 10:30:40 -08:00
2020-04-24 11:17:32 +01:00
2019-05-09 00:33:03 +03:00
2019-10-18 15:01:35 +02:00
2020-03-24 21:33:00 +01:00
2020-05-05 20:26:16 +03:00
2020-05-05 20:26:16 +03:00
2019-10-27 02:10:57 +03:00
2020-04-24 11:17:44 +01:00
2020-04-24 11:17:41 +01:00
2020-04-24 11:18:25 +01:00
2020-05-05 20:26:16 +03:00
2020-04-24 11:18:30 +01:00
2020-04-24 11:18:44 +01:00
2020-04-24 11:18:44 +01:00
2020-03-24 21:33:00 +01:00
2020-06-01 12:27:06 +03:00
2020-04-17 16:48:06 +03:00
2020-06-01 12:27:25 +03:00
2020-05-05 20:27:44 +03:00
2019-06-17 15:22:47 +03:00
2020-06-03 20:59:38 -07:00
2020-05-07 20:14:17 +03:00
2020-05-05 20:27:44 +03:00
2020-01-13 21:02:46 +02:00
2019-05-21 11:28:39 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-06-05 17:37:11 +02:00
2019-12-20 19:01:59 +02:00
2019-10-15 10:55:09 +03:00
2020-02-10 17:47:38 +02:00
2020-05-07 20:14:24 +03:00
2019-06-19 17:09:55 +02:00
2020-05-12 17:27:11 +03:00
2019-06-05 17:37:17 +02:00
2020-04-17 16:47:26 +03:00
2019-06-05 17:37:17 +02:00
2019-07-28 12:58:40 +03:00
2019-10-15 10:55:11 +03:00
2019-05-30 11:26:35 -07:00
2020-05-15 15:45:15 +03:00
2020-06-14 11:49:56 +01:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2020-06-01 12:27:06 +03:00
2019-07-14 16:51:47 -07:00
2020-04-23 17:03:54 +03:00
2020-04-17 16:47:26 +03:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00