staging:iio:adc: drop assign iio_info.driver_module
authorJonathan Cameron <jic23@kernel.org>
Sun, 23 Jul 2017 16:26:10 +0000 (17:26 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Aug 2017 21:14:53 +0000 (22:14 +0100)
The equivalent of this is now done via macro magic when
the relevant register call is made.  The actual structure
element will shortly go away.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/staging/iio/adc/ad7192.c
drivers/staging/iio/adc/ad7280a.c
drivers/staging/iio/adc/ad7606.c
drivers/staging/iio/adc/ad7780.c
drivers/staging/iio/adc/ad7816.c
drivers/staging/iio/addac/adt7316.c

index d11c6de..d577d7b 100644 (file)
@@ -569,7 +569,6 @@ static const struct iio_info ad7192_info = {
        .write_raw_get_fmt = ad7192_write_raw_get_fmt,
        .attrs = &ad7192_attribute_group,
        .validate_trigger = ad_sd_validate_trigger,
-       .driver_module = THIS_MODULE,
 };
 
 static const struct iio_info ad7195_info = {
@@ -578,7 +577,6 @@ static const struct iio_info ad7195_info = {
        .write_raw_get_fmt = ad7192_write_raw_get_fmt,
        .attrs = &ad7195_attribute_group,
        .validate_trigger = ad_sd_validate_trigger,
-       .driver_module = THIS_MODULE,
 };
 
 static const struct iio_chan_spec ad7192_channels[] = {
index f85dde9..b736275 100644 (file)
@@ -828,7 +828,6 @@ static const struct iio_info ad7280_info = {
        .read_raw = ad7280_read_raw,
        .event_attrs = &ad7280_event_attrs_group,
        .attrs = &ad7280_attrs_group,
-       .driver_module = THIS_MODULE,
 };
 
 static const struct ad7280_platform_data ad7793_default_pdata = {
index 18f5f13..25b9fcd 100644 (file)
@@ -373,26 +373,22 @@ static irqreturn_t ad7606_interrupt(int irq, void *dev_id)
 };
 
 static const struct iio_info ad7606_info_no_os_or_range = {
-       .driver_module = THIS_MODULE,
        .read_raw = &ad7606_read_raw,
 };
 
 static const struct iio_info ad7606_info_os_and_range = {
-       .driver_module = THIS_MODULE,
        .read_raw = &ad7606_read_raw,
        .write_raw = &ad7606_write_raw,
        .attrs = &ad7606_attribute_group_os_and_range,
 };
 
 static const struct iio_info ad7606_info_os = {
-       .driver_module = THIS_MODULE,
        .read_raw = &ad7606_read_raw,
        .write_raw = &ad7606_write_raw,
        .attrs = &ad7606_attribute_group_os,
 };
 
 static const struct iio_info ad7606_info_range = {
-       .driver_module = THIS_MODULE,
        .read_raw = &ad7606_read_raw,
        .write_raw = &ad7606_write_raw,
        .attrs = &ad7606_attribute_group_range,
index dec3ba6..a7797af 100644 (file)
@@ -155,7 +155,6 @@ static const struct ad7780_chip_info ad7780_chip_info_tbl[] = {
 
 static const struct iio_info ad7780_info = {
        .read_raw = ad7780_read_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static int ad7780_probe(struct spi_device *spi)
index 17d2805..bfe180a 100644 (file)
@@ -335,7 +335,6 @@ static const struct attribute_group ad7816_event_attribute_group = {
 static const struct iio_info ad7816_info = {
        .attrs = &ad7816_attribute_group,
        .event_attrs = &ad7816_event_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 /*
index b2bce26..2d33632 100644 (file)
@@ -2087,13 +2087,11 @@ EXPORT_SYMBOL_GPL(adt7316_pm_ops);
 static const struct iio_info adt7316_info = {
        .attrs = &adt7316_attribute_group,
        .event_attrs = &adt7316_event_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 static const struct iio_info adt7516_info = {
        .attrs = &adt7516_attribute_group,
        .event_attrs = &adt7516_event_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 /*