iio:pressure: 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:
Родитель
c64fdf0fe9
Коммит
6a15fef2cb
|
@ -168,7 +168,6 @@ static int abp060mg_read_raw(struct iio_dev *indio_dev,
|
|||
}
|
||||
|
||||
static const struct iio_info abp060mg_info = {
|
||||
.driver_module = THIS_MODULE,
|
||||
.read_raw = abp060mg_read_raw,
|
||||
};
|
||||
|
||||
|
|
|
@ -546,7 +546,6 @@ static const struct attribute_group bmp280_attrs_group = {
|
|||
};
|
||||
|
||||
static const struct iio_info bmp280_info = {
|
||||
.driver_module = THIS_MODULE,
|
||||
.read_raw = &bmp280_read_raw,
|
||||
.write_raw = &bmp280_write_raw,
|
||||
.attrs = &bmp280_attrs_group,
|
||||
|
|
|
@ -120,7 +120,6 @@ static int cros_ec_baro_write(struct iio_dev *indio_dev,
|
|||
static const struct iio_info cros_ec_baro_info = {
|
||||
.read_raw = &cros_ec_baro_read,
|
||||
.write_raw = &cros_ec_baro_write,
|
||||
.driver_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int cros_ec_baro_probe(struct platform_device *pdev)
|
||||
|
|
|
@ -160,7 +160,6 @@ static int press_write_raw(struct iio_dev *indio_dev,
|
|||
}
|
||||
|
||||
static const struct iio_info press_info = {
|
||||
.driver_module = THIS_MODULE,
|
||||
.read_raw = &press_read_raw,
|
||||
.write_raw = &press_write_raw,
|
||||
};
|
||||
|
|
|
@ -208,7 +208,6 @@ static int hp03_read_raw(struct iio_dev *indio_dev,
|
|||
}
|
||||
|
||||
static const struct iio_info hp03_info = {
|
||||
.driver_module = THIS_MODULE,
|
||||
.read_raw = &hp03_read_raw,
|
||||
};
|
||||
|
||||
|
|
|
@ -351,7 +351,6 @@ static const struct iio_info hp206c_info = {
|
|||
.attrs = &hp206c_attribute_group,
|
||||
.read_raw = hp206c_read_raw,
|
||||
.write_raw = hp206c_write_raw,
|
||||
.driver_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int hp206c_probe(struct i2c_client *client,
|
||||
|
|
|
@ -144,7 +144,6 @@ static const struct iio_chan_spec mpl115_channels[] = {
|
|||
|
||||
static const struct iio_info mpl115_info = {
|
||||
.read_raw = &mpl115_read_raw,
|
||||
.driver_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
int mpl115_probe(struct device *dev, const char *name,
|
||||
|
|
|
@ -218,7 +218,6 @@ static const struct iio_chan_spec mpl3115_channels[] = {
|
|||
|
||||
static const struct iio_info mpl3115_info = {
|
||||
.read_raw = &mpl3115_read_raw,
|
||||
.driver_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int mpl3115_probe(struct i2c_client *client,
|
||||
|
|
|
@ -384,7 +384,6 @@ static const struct iio_info ms5611_info = {
|
|||
.read_raw = &ms5611_read_raw,
|
||||
.write_raw = &ms5611_write_raw,
|
||||
.attrs = &ms5611_attribute_group,
|
||||
.driver_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int ms5611_init(struct iio_dev *indio_dev)
|
||||
|
|
|
@ -124,7 +124,6 @@ static const struct iio_info ms5637_info = {
|
|||
.read_raw = ms5637_read_raw,
|
||||
.write_raw = ms5637_write_raw,
|
||||
.attrs = &ms5637_attribute_group,
|
||||
.driver_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int ms5637_probe(struct i2c_client *client,
|
||||
|
|
|
@ -547,7 +547,6 @@ static const struct attribute_group st_press_attribute_group = {
|
|||
};
|
||||
|
||||
static const struct iio_info press_info = {
|
||||
.driver_module = THIS_MODULE,
|
||||
.attrs = &st_press_attribute_group,
|
||||
.read_raw = &st_press_read_raw,
|
||||
.write_raw = &st_press_write_raw,
|
||||
|
@ -556,7 +555,6 @@ static const struct iio_info press_info = {
|
|||
|
||||
#ifdef CONFIG_IIO_TRIGGER
|
||||
static const struct iio_trigger_ops st_press_trigger_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.set_trigger_state = ST_PRESS_TRIGGER_SET_STATE,
|
||||
.validate_device = st_sensors_validate_device,
|
||||
};
|
||||
|
|
|
@ -209,7 +209,6 @@ static const struct iio_info t5403_info = {
|
|||
.read_raw = &t5403_read_raw,
|
||||
.write_raw = &t5403_write_raw,
|
||||
.attrs = &t5403_attribute_group,
|
||||
.driver_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int t5403_probe(struct i2c_client *client,
|
||||
|
|
|
@ -1394,7 +1394,6 @@ static int zpa2326_set_trigger_state(struct iio_trigger *trig, bool state)
|
|||
}
|
||||
|
||||
static const struct iio_trigger_ops zpa2326_trigger_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.set_trigger_state = zpa2326_set_trigger_state,
|
||||
};
|
||||
|
||||
|
@ -1594,7 +1593,6 @@ static const struct iio_chan_spec zpa2326_channels[] = {
|
|||
};
|
||||
|
||||
static const struct iio_info zpa2326_info = {
|
||||
.driver_module = THIS_MODULE,
|
||||
.attrs = &zpa2326_attribute_group,
|
||||
.read_raw = zpa2326_read_raw,
|
||||
.write_raw = zpa2326_write_raw,
|
||||
|
|
Загрузка…
Ссылка в новой задаче