forked from Minki/linux
staging:iio:meter: 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
6dab4d415f
commit
02272cb11b
@ -561,7 +561,6 @@ static const struct attribute_group ade7753_attribute_group = {
|
||||
|
||||
static const struct iio_info ade7753_info = {
|
||||
.attrs = &ade7753_attribute_group,
|
||||
.driver_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int ade7753_probe(struct spi_device *spi)
|
||||
|
@ -601,7 +601,6 @@ static const struct attribute_group ade7754_attribute_group = {
|
||||
|
||||
static const struct iio_info ade7754_info = {
|
||||
.attrs = &ade7754_attribute_group,
|
||||
.driver_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int ade7754_probe(struct spi_device *spi)
|
||||
|
@ -827,7 +827,6 @@ static const struct iio_info ade7758_info = {
|
||||
.attrs = &ade7758_attribute_group,
|
||||
.read_raw = &ade7758_read_raw,
|
||||
.write_raw = &ade7758_write_raw,
|
||||
.driver_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int ade7758_probe(struct spi_device *spi)
|
||||
|
@ -53,7 +53,6 @@ static int ade7758_trig_try_reen(struct iio_trigger *trig)
|
||||
}
|
||||
|
||||
static const struct iio_trigger_ops ade7758_trigger_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.set_trigger_state = &ade7758_data_rdy_trigger_set_state,
|
||||
.try_reenable = &ade7758_trig_try_reen,
|
||||
};
|
||||
|
@ -493,7 +493,6 @@ static const struct attribute_group ade7759_attribute_group = {
|
||||
|
||||
static const struct iio_info ade7759_info = {
|
||||
.attrs = &ade7759_attribute_group,
|
||||
.driver_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int ade7759_probe(struct spi_device *spi)
|
||||
|
@ -530,7 +530,6 @@ static const struct attribute_group ade7854_attribute_group = {
|
||||
|
||||
static const struct iio_info ade7854_info = {
|
||||
.attrs = &ade7854_attribute_group,
|
||||
.driver_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
int ade7854_probe(struct iio_dev *indio_dev, struct device *dev)
|
||||
|
Loading…
Reference in New Issue
Block a user