Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os 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>

authored by

Jonathan Cameron and committed by
Jonathan Cameron
02272cb1 6dab4d41

-6
-1
drivers/staging/iio/meter/ade7753.c
··· 561 561 562 562 static const struct iio_info ade7753_info = { 563 563 .attrs = &ade7753_attribute_group, 564 - .driver_module = THIS_MODULE, 565 564 }; 566 565 567 566 static int ade7753_probe(struct spi_device *spi)
-1
drivers/staging/iio/meter/ade7754.c
··· 601 601 602 602 static const struct iio_info ade7754_info = { 603 603 .attrs = &ade7754_attribute_group, 604 - .driver_module = THIS_MODULE, 605 604 }; 606 605 607 606 static int ade7754_probe(struct spi_device *spi)
-1
drivers/staging/iio/meter/ade7758_core.c
··· 827 827 .attrs = &ade7758_attribute_group, 828 828 .read_raw = &ade7758_read_raw, 829 829 .write_raw = &ade7758_write_raw, 830 - .driver_module = THIS_MODULE, 831 830 }; 832 831 833 832 static int ade7758_probe(struct spi_device *spi)
-1
drivers/staging/iio/meter/ade7758_trigger.c
··· 53 53 } 54 54 55 55 static const struct iio_trigger_ops ade7758_trigger_ops = { 56 - .owner = THIS_MODULE, 57 56 .set_trigger_state = &ade7758_data_rdy_trigger_set_state, 58 57 .try_reenable = &ade7758_trig_try_reen, 59 58 };
-1
drivers/staging/iio/meter/ade7759.c
··· 493 493 494 494 static const struct iio_info ade7759_info = { 495 495 .attrs = &ade7759_attribute_group, 496 - .driver_module = THIS_MODULE, 497 496 }; 498 497 499 498 static int ade7759_probe(struct spi_device *spi)
-1
drivers/staging/iio/meter/ade7854.c
··· 530 530 531 531 static const struct iio_info ade7854_info = { 532 532 .attrs = &ade7854_attribute_group, 533 - .driver_module = THIS_MODULE, 534 533 }; 535 534 536 535 int ade7854_probe(struct iio_dev *indio_dev, struct device *dev)