iio:resolver: drop assignment of iio_info.driver_module
authorJonathan Cameron <jic23@kernel.org>
Sun, 23 Jul 2017 16:26:16 +0000 (17:26 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Aug 2017 21:14:57 +0000 (22:14 +0100)
The equivalent is now done via macro magic when
the relevant register call is 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>
drivers/staging/iio/resolver/ad2s1200.c
drivers/staging/iio/resolver/ad2s1210.c
drivers/staging/iio/resolver/ad2s90.c

index a37e199225f44e187687ab834bf9a8698fbbf0e1..aa62c64e9bc44519c49881dcd6f379cd3906ef30 100644 (file)
@@ -98,7 +98,6 @@ static const struct iio_chan_spec ad2s1200_channels[] = {
 
 static const struct iio_info ad2s1200_info = {
        .read_raw = ad2s1200_read_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static int ad2s1200_probe(struct spi_device *spi)
index 3e00df74b18c883d4e19f0bac7ec087988b58821..f8baab061ebaf1f3f4c7e2b1fb353a45595319a3 100644 (file)
@@ -638,7 +638,6 @@ error_ret:
 static const struct iio_info ad2s1210_info = {
        .read_raw = ad2s1210_read_raw,
        .attrs = &ad2s1210_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 static int ad2s1210_setup_gpios(struct ad2s1210_state *st)
index b2270908f26f2bb41adb5cdee7aa59aa1104a828..59586947a9366c15ae4f2b857d358bd83ab6b1e9 100644 (file)
@@ -48,7 +48,6 @@ error_ret:
 
 static const struct iio_info ad2s90_info = {
        .read_raw = ad2s90_read_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static const struct iio_chan_spec ad2s90_chan = {