iio: core: move @id from struct iio_dev to struct iio_dev_opaque
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 26 Apr 2021 17:49:03 +0000 (18:49 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 May 2021 12:49:13 +0000 (13:49 +0100)
commit15ea2878bfb255099092634d28f31177f237ccd7
tree5dad7386052e103370ac33add69795274c362fb9
parente6cc8f2b7616f9d85e281d903f82d6f99819cd08
iio: core: move @id from struct iio_dev to struct iio_dev_opaque

Continuing from Alexandru Ardelean's introduction of the split between
driver modifiable fields and those that should only be set by the core.

This could have been done in two steps to make the actual move after
introducing iio_device_id() but there seemed limited point to that
given how mechanical the majority of the patch is.

Includes fixup from Alex for missing mxs-lradc-adc conversion.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/20210426174911.397061-2-jic23@kernel.org
51 files changed:
drivers/iio/accel/adxl372.c
drivers/iio/accel/bma180.c
drivers/iio/accel/bmc150-accel-core.c
drivers/iio/accel/kxcjk-1013.c
drivers/iio/accel/mma8452.c
drivers/iio/accel/mxc4005.c
drivers/iio/accel/stk8312.c
drivers/iio/accel/stk8ba50.c
drivers/iio/adc/ad7606.c
drivers/iio/adc/ad7766.c
drivers/iio/adc/ad7768-1.c
drivers/iio/adc/ad_sigma_delta.c
drivers/iio/adc/at91-sama5d2_adc.c
drivers/iio/adc/at91_adc.c
drivers/iio/adc/dln2-adc.c
drivers/iio/adc/ina2xx-adc.c
drivers/iio/adc/mxs-lradc-adc.c
drivers/iio/adc/ti-ads131e08.c
drivers/iio/adc/xilinx-xadc-core.c
drivers/iio/buffer/industrialio-triggered-buffer.c
drivers/iio/chemical/atlas-sensor.c
drivers/iio/chemical/ccs811.c
drivers/iio/chemical/scd30_core.c
drivers/iio/common/hid-sensors/hid-sensor-trigger.c
drivers/iio/gyro/adxrs290.c
drivers/iio/gyro/bmg160_core.c
drivers/iio/gyro/fxas21002c_core.c
drivers/iio/gyro/itg3200_buffer.c
drivers/iio/gyro/mpu3050-core.c
drivers/iio/health/afe4403.c
drivers/iio/health/afe4404.c
drivers/iio/imu/adis_trigger.c
drivers/iio/imu/bmi160/bmi160_core.c
drivers/iio/imu/inv_mpu6050/inv_mpu_trigger.c
drivers/iio/imu/kmx61.c
drivers/iio/industrialio-core.c
drivers/iio/industrialio-triggered-event.c
drivers/iio/light/acpi-als.c
drivers/iio/light/rpr0521.c
drivers/iio/light/si1145.c
drivers/iio/light/vcnl4000.c
drivers/iio/light/vcnl4035.c
drivers/iio/magnetometer/bmc150_magn.c
drivers/iio/magnetometer/rm3100-core.c
drivers/iio/potentiostat/lmp91000.c
drivers/iio/pressure/zpa2326.c
drivers/iio/proximity/as3935.c
drivers/iio/proximity/sx9310.c
drivers/iio/proximity/sx9500.c
include/linux/iio/iio-opaque.h
include/linux/iio/iio.h