linux_dsm_epyc7002/drivers/iio/dac
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
..
ad5064.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad5360.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad5380.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad5421.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad5446.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad5449.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad5504.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad5592r-base.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad5592r-base.h iio: dac: ad5592r-base: Replace indio_dev->mlock with own device lock 2020-05-21 19:37:05 +01:00
ad5592r.c iio: dac: ad5592r: Fix a typo in the name of a function 2020-05-03 09:47:21 +01:00
ad5593r.c iio: dac: ad5593r: Fix a typo in MODULE_DESCRIPTION 2020-05-03 09:47:21 +01:00
ad5624r_spi.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad5624r.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5686-spi.c drivers: iio: dac: Fix wrong license for ADI drivers 2019-02-09 18:46:01 +00:00
ad5686.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad5686.h iio: dac: ad5686: Replace indio_dev->mlock with own device lock 2020-05-16 16:29:54 +01:00
ad5696-i2c.c drivers: iio: dac: Fix wrong license for ADI drivers 2019-02-09 18:46:01 +00:00
ad5755.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad5758.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad5761.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad5764.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad5770r.c iio: dac: ad5770r: fix off-by-one check on maximum number of channels 2020-04-19 17:50:01 +01:00
ad5791.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad7303.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ad8801.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
cio-dac.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
dpot-dac.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ds4424.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
Kconfig iio: DAC extension for ltc2634-12/10/8 2020-05-03 09:47:23 +01:00
lpc18xx_dac.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ltc1660.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ltc2632.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
m62332.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
Makefile iio: dac: ad5770r: Add AD5770R support 2020-03-08 17:28:41 +00:00
max517.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
max5821.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
mcp4725.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
mcp4922.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
stm32-dac-core.c iio: dac: stm32-dac: better handle reset controller failures 2020-01-18 14:32:01 +00:00
stm32-dac-core.h iio: stm32: Adopt SPDX identifier 2018-01-08 16:03:41 +01:00
stm32-dac.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ti-dac082s085.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ti-dac5571.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ti-dac7311.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ti-dac7612.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
vf610_dac.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00