linux/drivers/iio/imu
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
..
bmi160 iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
inv_mpu6050 iio: imu: inv_mpu6050: Drop double check for ACPI companion device 2020-06-14 11:49:32 +01:00
st_lsm6dsx iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
adis16400.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
adis16460.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
adis16475.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
adis16480.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
adis_buffer.c iio: adis: Support different burst sizes 2020-04-25 16:11:56 +01:00
adis_trigger.c iio: imu: adis: Add irq flag variable 2020-04-25 16:09:30 +01:00
adis.c iio: adis: Add adis_update_bits() APIs 2020-04-25 16:10:44 +01:00
fxos8700_core.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
fxos8700_i2c.c iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
fxos8700_spi.c iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
fxos8700.h iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
Kconfig iio: imu: Add support for adis16475 2020-05-03 09:47:18 +01:00
kmx61.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
Makefile iio: imu: Add support for adis16475 2020-05-03 09:47:18 +01:00