iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner
authorJonathan Cameron <jic23@kernel.org>
Sun, 23 Jul 2017 16:26:05 +0000 (17:26 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Aug 2017 20:35:27 +0000 (21:35 +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>
13 files changed:
drivers/iio/pressure/abp060mg.c
drivers/iio/pressure/bmp280-core.c
drivers/iio/pressure/cros_ec_baro.c
drivers/iio/pressure/hid-sensor-press.c
drivers/iio/pressure/hp03.c
drivers/iio/pressure/hp206c.c
drivers/iio/pressure/mpl115.c
drivers/iio/pressure/mpl3115.c
drivers/iio/pressure/ms5611_core.c
drivers/iio/pressure/ms5637.c
drivers/iio/pressure/st_pressure_core.c
drivers/iio/pressure/t5403.c
drivers/iio/pressure/zpa2326.c

index 43bdd0b..46a220c 100644 (file)
@@ -168,7 +168,6 @@ static int abp060mg_read_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info abp060mg_info = {
-       .driver_module = THIS_MODULE,
        .read_raw = abp060mg_read_raw,
 };
 
index d82b788..89696b7 100644 (file)
@@ -546,7 +546,6 @@ static const struct attribute_group bmp280_attrs_group = {
 };
 
 static const struct iio_info bmp280_info = {
-       .driver_module = THIS_MODULE,
        .read_raw = &bmp280_read_raw,
        .write_raw = &bmp280_write_raw,
        .attrs = &bmp280_attrs_group,
index 48b2a30..3703418 100644 (file)
@@ -120,7 +120,6 @@ static int cros_ec_baro_write(struct iio_dev *indio_dev,
 static const struct iio_info cros_ec_baro_info = {
        .read_raw = &cros_ec_baro_read,
        .write_raw = &cros_ec_baro_write,
-       .driver_module = THIS_MODULE,
 };
 
 static int cros_ec_baro_probe(struct platform_device *pdev)
index 6848d8c..4c43791 100644 (file)
@@ -160,7 +160,6 @@ static int press_write_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info press_info = {
-       .driver_module = THIS_MODULE,
        .read_raw = &press_read_raw,
        .write_raw = &press_write_raw,
 };
index 8c7b3ec..406934e 100644 (file)
@@ -208,7 +208,6 @@ static int hp03_read_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info hp03_info = {
-       .driver_module  = THIS_MODULE,
        .read_raw       = &hp03_read_raw,
 };
 
index 12f769e..c38c196 100644 (file)
@@ -351,7 +351,6 @@ static const struct iio_info hp206c_info = {
        .attrs = &hp206c_attribute_group,
        .read_raw = hp206c_read_raw,
        .write_raw = hp206c_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static int hp206c_probe(struct i2c_client *client,
index 8f2bce2..ab4786d 100644 (file)
@@ -144,7 +144,6 @@ static const struct iio_chan_spec mpl115_channels[] = {
 
 static const struct iio_info mpl115_info = {
        .read_raw = &mpl115_read_raw,
-       .driver_module = THIS_MODULE,
 };
 
 int mpl115_probe(struct device *dev, const char *name,
index 619b963..7537547 100644 (file)
@@ -218,7 +218,6 @@ static const struct iio_chan_spec mpl3115_channels[] = {
 
 static const struct iio_info mpl3115_info = {
        .read_raw = &mpl3115_read_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static int mpl3115_probe(struct i2c_client *client,
index 2a77a2f..f950cfd 100644 (file)
@@ -384,7 +384,6 @@ static const struct iio_info ms5611_info = {
        .read_raw = &ms5611_read_raw,
        .write_raw = &ms5611_write_raw,
        .attrs = &ms5611_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 static int ms5611_init(struct iio_dev *indio_dev)
index c413f8a..e2f73e6 100644 (file)
@@ -124,7 +124,6 @@ static const struct iio_info ms5637_info = {
        .read_raw = ms5637_read_raw,
        .write_raw = ms5637_write_raw,
        .attrs = &ms5637_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 static int ms5637_probe(struct i2c_client *client,
index 34611a8..3117f4c 100644 (file)
@@ -547,7 +547,6 @@ static const struct attribute_group st_press_attribute_group = {
 };
 
 static const struct iio_info press_info = {
-       .driver_module = THIS_MODULE,
        .attrs = &st_press_attribute_group,
        .read_raw = &st_press_read_raw,
        .write_raw = &st_press_write_raw,
@@ -556,7 +555,6 @@ static const struct iio_info press_info = {
 
 #ifdef CONFIG_IIO_TRIGGER
 static const struct iio_trigger_ops st_press_trigger_ops = {
-       .owner = THIS_MODULE,
        .set_trigger_state = ST_PRESS_TRIGGER_SET_STATE,
        .validate_device = st_sensors_validate_device,
 };
index 2667e71..92c00f6 100644 (file)
@@ -209,7 +209,6 @@ static const struct iio_info t5403_info = {
        .read_raw = &t5403_read_raw,
        .write_raw = &t5403_write_raw,
        .attrs = &t5403_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 static int t5403_probe(struct i2c_client *client,
index ebfb1de..78dfbde 100644 (file)
@@ -1394,7 +1394,6 @@ static int zpa2326_set_trigger_state(struct iio_trigger *trig, bool state)
 }
 
 static const struct iio_trigger_ops zpa2326_trigger_ops = {
-       .owner             = THIS_MODULE,
        .set_trigger_state = zpa2326_set_trigger_state,
 };
 
@@ -1594,7 +1593,6 @@ static const struct iio_chan_spec zpa2326_channels[] = {
 };
 
 static const struct iio_info zpa2326_info = {
-       .driver_module = THIS_MODULE,
        .attrs         = &zpa2326_attribute_group,
        .read_raw      = zpa2326_read_raw,
        .write_raw     = zpa2326_write_raw,