WSL2-Linux-Kernel/drivers/iio/light
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
..
Kconfig iio: vcnl4000: Add buffer support for VCNL4010/20. 2020-05-03 14:53:57 +01:00
Makefile - New Drivers 2020-04-07 19:48:52 -07:00
acpi-als.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
adjd_s311.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
adux1020.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
al3010.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
al3320a.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
apds9300.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
apds9960.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
bh1750.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
bh1780.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
cm3232.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
cm3323.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
cm3605.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
cm32181.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
cm36651.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
cros_ec_light_prox.c iio: cros_ec: Reapply range at resume 2020-06-14 11:49:41 +01:00
gp2ap002.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
gp2ap020a00f.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
hid-sensor-als.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
hid-sensor-prox.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
iqs621-als.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
isl29018.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
isl29028.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
isl29125.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
jsa1212.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
lm3533-als.c iio: light: remove unneeded semicolon 2019-12-29 15:20:06 +00:00
ltr501.c iio: light: ltr501: Constify structs 2020-05-11 20:19:19 +01:00
lv0104cs.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
max44000.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
max44009.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
noa1305.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
opt3001.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
pa12203001.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
rpr0521.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
si1133.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
si1145.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
st_uvis25.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
st_uvis25_core.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
st_uvis25_i2c.c iio: light: st_uvis25: Add mod_devicetable.h and drop of_match_ptr 2020-04-25 15:44:36 +01:00
st_uvis25_spi.c iio: light: st_uvis25: Add mod_devicetable.h and drop of_match_ptr 2020-04-25 15:44:36 +01:00
stk3310.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
tcs3414.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
tcs3472.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
tsl2563.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
tsl2583.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
tsl2772.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
tsl4531.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
us5182d.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
vcnl4000.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
vcnl4035.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
veml6030.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
veml6070.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
vl6180.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
zopt2201.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00