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 43bdd0b9155f26154dd42f2928d10caba2c59dfe..46a220c70d6affddce30bd0279e62f7b903b88fb 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 d82b788374b61ba617bc5a073e17d283e5e0cfc9..89696b70231af5877071b7e69d11c2d1d3826ed8 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 48b2a30f57ae476c09d5b3333ad084c757e017cd..37034188ab8e0034a8fe98093a34ece9f1b0dd6c 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 6848d8c80effcf7c92c44669691b4a55ef3b75e7..4c437918f1d282f55661213a098e9d0b6ca9049a 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 8c7b3ec3d84a631a5f6e5cd9bb176c6815db6d58..406934ea6228f4292df2d3ff06774ffa76e31cc7 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 12f769e863555c73b7fe8f200e7f8493b09cdfea..c38c19678cf63fee13edf5d4d78800f1c27af2ed 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 8f2bce213248e1075e92ac0680d8a1e00ea39524..ab4786d0102bcf73cfb481233146bbb3496b8067 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 619b963714c7384b2aeb5421ea7bca67941be432..7537547fb7eeb890bde52af0098a3e2776da7f76 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 2a77a2f157521c7383d666fd8b1ee4311cffb1db..f950cfde5db99ce4e8a7e16367c8fbeadb7b481c 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 c413f8a84a633950d4fc483f28702887cbf9b266..e2f73e6dc58f135c1eedd1f08cbe252562840f12 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 34611a8ea2cea55f7d1e576e225df516ebc7f475..3117f4ce76e4b4518f890a6a2de46a73642611ca 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 2667e71721f5100f0c7bdf7659bd3e32ce80a409..92c00f603b1dcab8f8eb6b8dd2ff7aea63fec41a 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 ebfb1de7377ffb5b0c30cf3c23c61b0f7afcdddd..78dfbde62028511bd623df89593dbce86de4c54e 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,