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>
This commit is contained in:
parent
13a8c6c2a1
commit
79978a9bd0
|
@ -833,7 +833,6 @@ static struct adis16400_chip_info adis16400_chips[] = {
|
|||
};
|
||||
|
||||
static const struct iio_info adis16400_info = {
|
||||
.driver_module = THIS_MODULE,
|
||||
.read_raw = &adis16400_read_raw,
|
||||
.write_raw = &adis16400_write_raw,
|
||||
.update_scan_mode = adis16400_update_scan_mode,
|
||||
|
|
|
@ -720,7 +720,6 @@ static const struct iio_info adis16480_info = {
|
|||
.read_raw = &adis16480_read_raw,
|
||||
.write_raw = &adis16480_write_raw,
|
||||
.update_scan_mode = adis_update_scan_mode,
|
||||
.driver_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int adis16480_stop_device(struct iio_dev *indio_dev)
|
||||
|
|
|
@ -25,7 +25,6 @@ static int adis_data_rdy_trigger_set_state(struct iio_trigger *trig,
|
|||
}
|
||||
|
||||
static const struct iio_trigger_ops adis_trigger_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.set_trigger_state = &adis_data_rdy_trigger_set_state,
|
||||
};
|
||||
|
||||
|
|
|
@ -482,7 +482,6 @@ static const struct attribute_group bmi160_attrs_group = {
|
|||
};
|
||||
|
||||
static const struct iio_info bmi160_info = {
|
||||
.driver_module = THIS_MODULE,
|
||||
.read_raw = bmi160_read_raw,
|
||||
.write_raw = bmi160_write_raw,
|
||||
.attrs = &bmi160_attrs_group,
|
||||
|
|
|
@ -795,7 +795,6 @@ static const struct attribute_group inv_attribute_group = {
|
|||
};
|
||||
|
||||
static const struct iio_info mpu_info = {
|
||||
.driver_module = THIS_MODULE,
|
||||
.read_raw = &inv_mpu6050_read_raw,
|
||||
.write_raw = &inv_mpu6050_write_raw,
|
||||
.write_raw_get_fmt = &inv_write_raw_get_fmt,
|
||||
|
|
|
@ -114,7 +114,6 @@ static int inv_mpu_data_rdy_trigger_set_state(struct iio_trigger *trig,
|
|||
}
|
||||
|
||||
static const struct iio_trigger_ops inv_mpu_trigger_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.set_trigger_state = &inv_mpu_data_rdy_trigger_set_state,
|
||||
};
|
||||
|
||||
|
|
|
@ -1003,7 +1003,6 @@ static int kmx61_mag_validate_trigger(struct iio_dev *indio_dev,
|
|||
}
|
||||
|
||||
static const struct iio_info kmx61_acc_info = {
|
||||
.driver_module = THIS_MODULE,
|
||||
.read_raw = kmx61_read_raw,
|
||||
.write_raw = kmx61_write_raw,
|
||||
.attrs = &kmx61_acc_attribute_group,
|
||||
|
@ -1015,7 +1014,6 @@ static const struct iio_info kmx61_acc_info = {
|
|||
};
|
||||
|
||||
static const struct iio_info kmx61_mag_info = {
|
||||
.driver_module = THIS_MODULE,
|
||||
.read_raw = kmx61_read_raw,
|
||||
.write_raw = kmx61_write_raw,
|
||||
.attrs = &kmx61_mag_attribute_group,
|
||||
|
@ -1087,7 +1085,6 @@ static int kmx61_trig_try_reenable(struct iio_trigger *trig)
|
|||
static const struct iio_trigger_ops kmx61_trigger_ops = {
|
||||
.set_trigger_state = kmx61_data_rdy_trigger_set_state,
|
||||
.try_reenable = kmx61_trig_try_reenable,
|
||||
.owner = THIS_MODULE,
|
||||
};
|
||||
|
||||
static irqreturn_t kmx61_event_handler(int irq, void *private)
|
||||
|
|
|
@ -530,7 +530,6 @@ static const struct attribute_group st_lsm6dsx_acc_attribute_group = {
|
|||
};
|
||||
|
||||
static const struct iio_info st_lsm6dsx_acc_info = {
|
||||
.driver_module = THIS_MODULE,
|
||||
.attrs = &st_lsm6dsx_acc_attribute_group,
|
||||
.read_raw = st_lsm6dsx_read_raw,
|
||||
.write_raw = st_lsm6dsx_write_raw,
|
||||
|
@ -548,7 +547,6 @@ static const struct attribute_group st_lsm6dsx_gyro_attribute_group = {
|
|||
};
|
||||
|
||||
static const struct iio_info st_lsm6dsx_gyro_info = {
|
||||
.driver_module = THIS_MODULE,
|
||||
.attrs = &st_lsm6dsx_gyro_attribute_group,
|
||||
.read_raw = st_lsm6dsx_read_raw,
|
||||
.write_raw = st_lsm6dsx_write_raw,
|
||||
|
|
Loading…
Reference in New Issue