iio: remove left-over parent assignments
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Wed, 3 Jun 2020 11:40:23 +0000 (14:40 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 14 Jun 2020 10:50:04 +0000 (11:50 +0100)
commit8f73a13f74571941c2ad6d04c65b52d39cbdf90b
treea422f01d95c40e8f869afb7ee2a2935c032f9c9a
parent2c9d8e1a6220ec1f0a7356d76926cc9feaf9d352
iio: remove left-over parent assignments

These were found by doing some shell magic:
------------
for file in $(git grep -w devm_iio_device_alloc | cut -d: -f1 | sort | uniq) ; do
if grep 'parent =' $file | grep -v trig | grep -vq devm_; then
echo "$file -> $(grep "parent =" $file)"
fi
done
-----------

The output is bearable [after the semantic patch is applied].
There is a mix of trigger assignments with some iio device parent
assignments that are removed via this patch.

JC: A few more added via inspection of all parent =
statements in drivers/iio. Some of these may just have crossed with this
series, others were less obvious to scripting due to some cross
file / module boundary calls.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
34 files changed:
drivers/iio/accel/kxcjk-1013.c
drivers/iio/accel/mma8452.c
drivers/iio/accel/mma9553.c
drivers/iio/adc/ad7192.c
drivers/iio/adc/hx711.c
drivers/iio/adc/ltc2497-core.c
drivers/iio/adc/max1363.c
drivers/iio/adc/mcp3911.c
drivers/iio/adc/qcom-spmi-iadc.c
drivers/iio/amplifiers/ad8366.c
drivers/iio/chemical/atlas-ezo-sensor.c
drivers/iio/chemical/vz89x.c
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c
drivers/iio/common/st_sensors/st_sensors_i2c.c
drivers/iio/common/st_sensors/st_sensors_spi.c
drivers/iio/dac/ad5770r.c
drivers/iio/health/afe4403.c
drivers/iio/health/afe4404.c
drivers/iio/humidity/dht11.c
drivers/iio/humidity/hts221_core.c
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
drivers/iio/light/cm3605.c
drivers/iio/light/ltr501.c
drivers/iio/magnetometer/ak8975.c
drivers/iio/orientation/hid-sensor-rotation.c
drivers/iio/potentiostat/lmp91000.c
drivers/iio/pressure/ms5611_core.c
drivers/iio/proximity/ping.c
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c
drivers/iio/proximity/srf04.c
drivers/iio/proximity/srf08.c
drivers/iio/proximity/vcnl3020.c
drivers/iio/temperature/tsys01.c
drivers/staging/iio/addac/adt7316.c