Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio:imu: drop assign iio_info.driver_module and iio_trigger_ops.owner

The equivalent of both of these are now done via macro magic when
the relevant register calls are made. The actual structure
elements will shortly go away.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>

authored by

Jonathan Cameron and committed by
Jonathan Cameron
79978a9b 13a8c6c2

-11
-1
drivers/iio/imu/adis16400_core.c
··· 833 833 }; 834 834 835 835 static const struct iio_info adis16400_info = { 836 - .driver_module = THIS_MODULE, 837 836 .read_raw = &adis16400_read_raw, 838 837 .write_raw = &adis16400_write_raw, 839 838 .update_scan_mode = adis16400_update_scan_mode,
-1
drivers/iio/imu/adis16480.c
··· 720 720 .read_raw = &adis16480_read_raw, 721 721 .write_raw = &adis16480_write_raw, 722 722 .update_scan_mode = adis_update_scan_mode, 723 - .driver_module = THIS_MODULE, 724 723 }; 725 724 726 725 static int adis16480_stop_device(struct iio_dev *indio_dev)
-1
drivers/iio/imu/adis_trigger.c
··· 25 25 } 26 26 27 27 static const struct iio_trigger_ops adis_trigger_ops = { 28 - .owner = THIS_MODULE, 29 28 .set_trigger_state = &adis_data_rdy_trigger_set_state, 30 29 }; 31 30
-1
drivers/iio/imu/bmi160/bmi160_core.c
··· 482 482 }; 483 483 484 484 static const struct iio_info bmi160_info = { 485 - .driver_module = THIS_MODULE, 486 485 .read_raw = bmi160_read_raw, 487 486 .write_raw = bmi160_write_raw, 488 487 .attrs = &bmi160_attrs_group,
-1
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
··· 795 795 }; 796 796 797 797 static const struct iio_info mpu_info = { 798 - .driver_module = THIS_MODULE, 799 798 .read_raw = &inv_mpu6050_read_raw, 800 799 .write_raw = &inv_mpu6050_write_raw, 801 800 .write_raw_get_fmt = &inv_write_raw_get_fmt,
-1
drivers/iio/imu/inv_mpu6050/inv_mpu_trigger.c
··· 114 114 } 115 115 116 116 static const struct iio_trigger_ops inv_mpu_trigger_ops = { 117 - .owner = THIS_MODULE, 118 117 .set_trigger_state = &inv_mpu_data_rdy_trigger_set_state, 119 118 }; 120 119
-3
drivers/iio/imu/kmx61.c
··· 1003 1003 } 1004 1004 1005 1005 static const struct iio_info kmx61_acc_info = { 1006 - .driver_module = THIS_MODULE, 1007 1006 .read_raw = kmx61_read_raw, 1008 1007 .write_raw = kmx61_write_raw, 1009 1008 .attrs = &kmx61_acc_attribute_group, ··· 1014 1015 }; 1015 1016 1016 1017 static const struct iio_info kmx61_mag_info = { 1017 - .driver_module = THIS_MODULE, 1018 1018 .read_raw = kmx61_read_raw, 1019 1019 .write_raw = kmx61_write_raw, 1020 1020 .attrs = &kmx61_mag_attribute_group, ··· 1085 1087 static const struct iio_trigger_ops kmx61_trigger_ops = { 1086 1088 .set_trigger_state = kmx61_data_rdy_trigger_set_state, 1087 1089 .try_reenable = kmx61_trig_try_reenable, 1088 - .owner = THIS_MODULE, 1089 1090 }; 1090 1091 1091 1092 static irqreturn_t kmx61_event_handler(int irq, void *private)
-2
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c
··· 530 530 }; 531 531 532 532 static const struct iio_info st_lsm6dsx_acc_info = { 533 - .driver_module = THIS_MODULE, 534 533 .attrs = &st_lsm6dsx_acc_attribute_group, 535 534 .read_raw = st_lsm6dsx_read_raw, 536 535 .write_raw = st_lsm6dsx_write_raw, ··· 547 548 }; 548 549 549 550 static const struct iio_info st_lsm6dsx_gyro_info = { 550 - .driver_module = THIS_MODULE, 551 551 .attrs = &st_lsm6dsx_gyro_attribute_group, 552 552 .read_raw = st_lsm6dsx_read_raw, 553 553 .write_raw = st_lsm6dsx_write_raw,