iio:proximity: drop assign iio_info.driver_module and iio_trigger_ops.owner
authorJonathan Cameron <jic23@kernel.org>
Sun, 23 Jul 2017 16:26:06 +0000 (17:26 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Aug 2017 21:14:51 +0000 (22:14 +0100)
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>
drivers/iio/proximity/as3935.c
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c
drivers/iio/proximity/srf04.c
drivers/iio/proximity/srf08.c
drivers/iio/proximity/sx9500.c

index 0eeff29b61bed8cc2f678c05a22f1fa51562794b..8c6c8131a5399128982f530f4b4807ea20e29101 100644 (file)
@@ -197,7 +197,6 @@ static int as3935_read_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info as3935_info = {
-       .driver_module = THIS_MODULE,
        .attrs = &as3935_attribute_group,
        .read_raw = &as3935_read_raw,
 };
@@ -223,7 +222,6 @@ err_read:
 }
 
 static const struct iio_trigger_ops iio_interrupt_trigger_ops = {
-       .owner = THIS_MODULE,
 };
 
 static void as3935_event_work(struct work_struct *work)
index 36c1ddc251aa721e9857e3821dbd2d0aedb27c01..4d56f67b24c6bc3cc8afd748e5b06d69fe77de89 100644 (file)
@@ -249,7 +249,6 @@ static irqreturn_t lidar_trigger_handler(int irq, void *private)
 }
 
 static const struct iio_info lidar_info = {
-       .driver_module = THIS_MODULE,
        .read_raw = lidar_read_raw,
 };
 
index e37667f933b36a9e6ed6300f293727be6a782ac2..09c7b9c095b07f4aaf24a15b89a02ab2d29ceb98 100644 (file)
@@ -203,7 +203,6 @@ static int srf04_read_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info srf04_iio_info = {
-       .driver_module          = THIS_MODULE,
        .read_raw               = srf04_read_raw,
 };
 
index 9380d545aab19e10df140cb8b28e7ffc201f9354..f2bf783f829a0332f714d0a729601c3d9ddfcb8d 100644 (file)
@@ -436,7 +436,6 @@ static const struct iio_chan_spec srf08_channels[] = {
 static const struct iio_info srf08_info = {
        .read_raw = srf08_read_raw,
        .attrs = &srf08_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 /*
@@ -445,7 +444,6 @@ static const struct iio_info srf08_info = {
  */
 static const struct iio_info srf02_info = {
        .read_raw = srf08_read_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static int srf08_probe(struct i2c_client *client,
index f42b3a1c75fffbd9adf902fca3e395dd0a974907..53c5d653e7809560ea7393f249e4d15a7e22bce0 100644 (file)
@@ -615,7 +615,6 @@ static const struct attribute_group sx9500_attribute_group = {
 };
 
 static const struct iio_info sx9500_info = {
-       .driver_module = THIS_MODULE,
        .attrs = &sx9500_attribute_group,
        .read_raw = &sx9500_read_raw,
        .write_raw = &sx9500_write_raw,
@@ -650,7 +649,6 @@ out:
 
 static const struct iio_trigger_ops sx9500_trigger_ops = {
        .set_trigger_state = sx9500_set_trigger_state,
-       .owner = THIS_MODULE,
 };
 
 static irqreturn_t sx9500_trigger_handler(int irq, void *private)