iio:chemical: drop assign iio_info.driver_module and iio_trigger_ops.owner
authorJonathan Cameron <jic23@kernel.org>
Sun, 23 Jul 2017 16:25:50 +0000 (17:25 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Aug 2017 20:25:20 +0000 (21:25 +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/chemical/ams-iaq-core.c
drivers/iio/chemical/atlas-ph-sensor.c
drivers/iio/chemical/ccs811.c
drivers/iio/chemical/vz89x.c

index c948ad2ee9adf5e4883c8037476549b24040dff6..d9e5950ad24a729c73cb5511878118332b51d0e8 100644 (file)
@@ -141,7 +141,6 @@ err_out:
 
 static const struct iio_info ams_iaqcore_info = {
        .read_raw       = ams_iaqcore_read_raw,
-       .driver_module  = THIS_MODULE,
 };
 
 static int ams_iaqcore_probe(struct i2c_client *client,
index ef761a5086304b4b032afa6095e2d9a605128caa..8c4e055800919aa6c784669a6e7833404079e3d6 100644 (file)
@@ -344,7 +344,6 @@ static int atlas_buffer_predisable(struct iio_dev *indio_dev)
 }
 
 static const struct iio_trigger_ops atlas_interrupt_trigger_ops = {
-       .owner = THIS_MODULE,
 };
 
 static const struct iio_buffer_setup_ops atlas_buffer_setup_ops = {
@@ -499,7 +498,6 @@ static int atlas_write_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info atlas_info = {
-       .driver_module = THIS_MODULE,
        .read_raw = atlas_read_raw,
        .write_raw = atlas_write_raw,
 };
index 840a6cbd5f0f43b94945001022b45b331646b4a7..6f57cb15c513079b9e1610b1e08b7fb57984f400 100644 (file)
@@ -270,7 +270,6 @@ static int ccs811_read_raw(struct iio_dev *indio_dev,
 
 static const struct iio_info ccs811_info = {
        .read_raw = ccs811_read_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static irqreturn_t ccs811_trigger_handler(int irq, void *p)
index f75eea6822f2852c01c832a70aeb8eabe5941344..9c9095ba42278dcd837a1a8d6a2a60fdeeb07c1f 100644 (file)
@@ -326,7 +326,6 @@ static int vz89x_read_raw(struct iio_dev *indio_dev,
 static const struct iio_info vz89x_info = {
        .attrs          = &vz89x_attrs_group,
        .read_raw       = vz89x_read_raw,
-       .driver_module  = THIS_MODULE,
 };
 
 static const struct vz89x_chip_data vz89x_chips[] = {