linux/drivers/iio
Alexandru Ardelean d3be83244c iio: remove explicit IIO device parent assignment
This patch applies the semantic patch:
@@
expression I, P, SP;
@@
   I = devm_iio_device_alloc(P, SP);
   ...
-  I->dev.parent = P;

It updates 302 files and does 307 deletions.
This semantic patch also removes some comments like
'/* Establish that the iio_dev is a child of the i2c device */'

But this is is only done in case where the block is left empty.

The patch does not seem to cover all cases. It looks like in some cases a
different variable is used in some cases to assign the parent, but it
points to the same reference.
In other cases, the block covered by ... may be just too big to be covered
by the semantic patch.

However, this looks pretty good as well, as it does cover a big bulk of the
drivers that should remove the parent assignment.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-06-14 11:49:59 +01:00
..
accel iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
adc iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
afe iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
amplifiers iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
buffer iio: buffer: drop devm_iio_kfifo_free() API call 2020-04-19 16:56:38 +01:00
chemical iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
common iio: cros_ec: Reapply range at resume 2020-06-14 11:49:41 +01:00
dac iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
dummy iio: core: pass parent device as parameter during allocation 2020-06-14 11:49:56 +01:00
frequency iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
gyro iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
health iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
humidity iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
imu iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
light iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
magnetometer iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
multiplexer iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
orientation iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
position iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
potentiometer iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
potentiostat iio: potentiostat: lmp9100: fix iio_triggered_buffer_{predisable,postenable} positions 2020-03-08 17:28:53 +00:00
pressure iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
proximity iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
resolver iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
temperature iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
trigger iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
iio_core_trigger.h
iio_core.h iio: buffer: rename 'read_first_n' callback to 'read' 2019-12-29 15:20:09 +00:00
industrialio-buffer.c iio: buffer: remove attrcount_orig var from sysfs creation 2020-05-16 17:57:15 +01:00
industrialio-configfs.c
industrialio-core.c iio: core: pass parent device as parameter during allocation 2020-06-14 11:49:56 +01:00
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c iio: core: drop devm_iio_trigger_free() API call 2020-04-19 16:56:37 +01:00
industrialio-triggered-event.c
inkern.c iio: inkern: drop devm_iio_channel_release{_all} API calls 2020-04-19 16:56:37 +01:00
Kconfig iio: position: Add support for Azoteq IQS624/625 angle sensors 2020-03-27 08:25:59 +00:00
Makefile iio: position: Add support for Azoteq IQS624/625 angle sensors 2020-03-27 08:25:59 +00:00
TODO iio: add a TODO 2020-03-08 17:28:53 +00:00