diff options
author | Jonathan Cameron <jic23@kernel.org> | 2017-07-23 12:26:00 -0400 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2017-08-22 16:31:57 -0400 |
commit | 4166b47c2b4ae38496a6871b3560677705f8edea (patch) | |
tree | a2aab66c4a064141836f04fb8ef3772b1bd8078b | |
parent | 79978a9bd02b0c2fcf6e8485dcb5ef7ee34f1adb (diff) |
iio:light: drop assign iio_info.driver_module and iio_trigger_ops.owner
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>
37 files changed, 0 insertions, 47 deletions
diff --git a/drivers/iio/light/acpi-als.c b/drivers/iio/light/acpi-als.c index f0b47c501f4e..c35e2f8df339 100644 --- a/drivers/iio/light/acpi-als.c +++ b/drivers/iio/light/acpi-als.c | |||
@@ -171,7 +171,6 @@ static int acpi_als_read_raw(struct iio_dev *indio_dev, | |||
171 | } | 171 | } |
172 | 172 | ||
173 | static const struct iio_info acpi_als_info = { | 173 | static const struct iio_info acpi_als_info = { |
174 | .driver_module = THIS_MODULE, | ||
175 | .read_raw = acpi_als_read_raw, | 174 | .read_raw = acpi_als_read_raw, |
176 | }; | 175 | }; |
177 | 176 | ||
diff --git a/drivers/iio/light/adjd_s311.c b/drivers/iio/light/adjd_s311.c index 0113fc843a81..e45bb6a277c2 100644 --- a/drivers/iio/light/adjd_s311.c +++ b/drivers/iio/light/adjd_s311.c | |||
@@ -245,7 +245,6 @@ static const struct iio_info adjd_s311_info = { | |||
245 | .read_raw = adjd_s311_read_raw, | 245 | .read_raw = adjd_s311_read_raw, |
246 | .write_raw = adjd_s311_write_raw, | 246 | .write_raw = adjd_s311_write_raw, |
247 | .update_scan_mode = adjd_s311_update_scan_mode, | 247 | .update_scan_mode = adjd_s311_update_scan_mode, |
248 | .driver_module = THIS_MODULE, | ||
249 | }; | 248 | }; |
250 | 249 | ||
251 | static int adjd_s311_probe(struct i2c_client *client, | 250 | static int adjd_s311_probe(struct i2c_client *client, |
diff --git a/drivers/iio/light/al3320a.c b/drivers/iio/light/al3320a.c index 6aac6513fd41..66623facea9a 100644 --- a/drivers/iio/light/al3320a.c +++ b/drivers/iio/light/al3320a.c | |||
@@ -168,7 +168,6 @@ static int al3320a_write_raw(struct iio_dev *indio_dev, | |||
168 | } | 168 | } |
169 | 169 | ||
170 | static const struct iio_info al3320a_info = { | 170 | static const struct iio_info al3320a_info = { |
171 | .driver_module = THIS_MODULE, | ||
172 | .read_raw = al3320a_read_raw, | 171 | .read_raw = al3320a_read_raw, |
173 | .write_raw = al3320a_write_raw, | 172 | .write_raw = al3320a_write_raw, |
174 | .attrs = &al3320a_attribute_group, | 173 | .attrs = &al3320a_attribute_group, |
diff --git a/drivers/iio/light/apds9300.c b/drivers/iio/light/apds9300.c index 05eacd1ee40f..5c15736fb93e 100644 --- a/drivers/iio/light/apds9300.c +++ b/drivers/iio/light/apds9300.c | |||
@@ -337,12 +337,10 @@ static int apds9300_write_interrupt_config(struct iio_dev *indio_dev, | |||
337 | } | 337 | } |
338 | 338 | ||
339 | static const struct iio_info apds9300_info_no_irq = { | 339 | static const struct iio_info apds9300_info_no_irq = { |
340 | .driver_module = THIS_MODULE, | ||
341 | .read_raw = apds9300_read_raw, | 340 | .read_raw = apds9300_read_raw, |
342 | }; | 341 | }; |
343 | 342 | ||
344 | static const struct iio_info apds9300_info = { | 343 | static const struct iio_info apds9300_info = { |
345 | .driver_module = THIS_MODULE, | ||
346 | .read_raw = apds9300_read_raw, | 344 | .read_raw = apds9300_read_raw, |
347 | .read_event_value = apds9300_read_thresh, | 345 | .read_event_value = apds9300_read_thresh, |
348 | .write_event_value = apds9300_write_thresh, | 346 | .write_event_value = apds9300_write_thresh, |
diff --git a/drivers/iio/light/apds9960.c b/drivers/iio/light/apds9960.c index 518a47e9377b..a8fa00e31c39 100644 --- a/drivers/iio/light/apds9960.c +++ b/drivers/iio/light/apds9960.c | |||
@@ -744,7 +744,6 @@ static int apds9960_write_event_config(struct iio_dev *indio_dev, | |||
744 | } | 744 | } |
745 | 745 | ||
746 | static const struct iio_info apds9960_info = { | 746 | static const struct iio_info apds9960_info = { |
747 | .driver_module = THIS_MODULE, | ||
748 | .attrs = &apds9960_attribute_group, | 747 | .attrs = &apds9960_attribute_group, |
749 | .read_raw = apds9960_read_raw, | 748 | .read_raw = apds9960_read_raw, |
750 | .write_raw = apds9960_write_raw, | 749 | .write_raw = apds9960_write_raw, |
diff --git a/drivers/iio/light/bh1750.c b/drivers/iio/light/bh1750.c index 6c61187e630f..a814828e69f5 100644 --- a/drivers/iio/light/bh1750.c +++ b/drivers/iio/light/bh1750.c | |||
@@ -217,7 +217,6 @@ static const struct attribute_group bh1750_attribute_group = { | |||
217 | }; | 217 | }; |
218 | 218 | ||
219 | static const struct iio_info bh1750_info = { | 219 | static const struct iio_info bh1750_info = { |
220 | .driver_module = THIS_MODULE, | ||
221 | .attrs = &bh1750_attribute_group, | 220 | .attrs = &bh1750_attribute_group, |
222 | .read_raw = bh1750_read_raw, | 221 | .read_raw = bh1750_read_raw, |
223 | .write_raw = bh1750_write_raw, | 222 | .write_raw = bh1750_write_raw, |
diff --git a/drivers/iio/light/bh1780.c b/drivers/iio/light/bh1780.c index b54dcba05a82..036f3bbe323c 100644 --- a/drivers/iio/light/bh1780.c +++ b/drivers/iio/light/bh1780.c | |||
@@ -128,7 +128,6 @@ static int bh1780_read_raw(struct iio_dev *indio_dev, | |||
128 | } | 128 | } |
129 | 129 | ||
130 | static const struct iio_info bh1780_info = { | 130 | static const struct iio_info bh1780_info = { |
131 | .driver_module = THIS_MODULE, | ||
132 | .read_raw = bh1780_read_raw, | 131 | .read_raw = bh1780_read_raw, |
133 | .debugfs_reg_access = bh1780_debugfs_reg_access, | 132 | .debugfs_reg_access = bh1780_debugfs_reg_access, |
134 | }; | 133 | }; |
diff --git a/drivers/iio/light/cm32181.c b/drivers/iio/light/cm32181.c index d6fd0dace74f..aebf7dd071af 100644 --- a/drivers/iio/light/cm32181.c +++ b/drivers/iio/light/cm32181.c | |||
@@ -292,7 +292,6 @@ static const struct attribute_group cm32181_attribute_group = { | |||
292 | }; | 292 | }; |
293 | 293 | ||
294 | static const struct iio_info cm32181_info = { | 294 | static const struct iio_info cm32181_info = { |
295 | .driver_module = THIS_MODULE, | ||
296 | .read_raw = &cm32181_read_raw, | 295 | .read_raw = &cm32181_read_raw, |
297 | .write_raw = &cm32181_write_raw, | 296 | .write_raw = &cm32181_write_raw, |
298 | .attrs = &cm32181_attribute_group, | 297 | .attrs = &cm32181_attribute_group, |
diff --git a/drivers/iio/light/cm3232.c b/drivers/iio/light/cm3232.c index 263e97235ea0..c639cf276ee6 100644 --- a/drivers/iio/light/cm3232.c +++ b/drivers/iio/light/cm3232.c | |||
@@ -322,7 +322,6 @@ static const struct attribute_group cm3232_attribute_group = { | |||
322 | }; | 322 | }; |
323 | 323 | ||
324 | static const struct iio_info cm3232_info = { | 324 | static const struct iio_info cm3232_info = { |
325 | .driver_module = THIS_MODULE, | ||
326 | .read_raw = &cm3232_read_raw, | 325 | .read_raw = &cm3232_read_raw, |
327 | .write_raw = &cm3232_write_raw, | 326 | .write_raw = &cm3232_write_raw, |
328 | .attrs = &cm3232_attribute_group, | 327 | .attrs = &cm3232_attribute_group, |
diff --git a/drivers/iio/light/cm3323.c b/drivers/iio/light/cm3323.c index d823c112d54b..83b08b6dc60f 100644 --- a/drivers/iio/light/cm3323.c +++ b/drivers/iio/light/cm3323.c | |||
@@ -211,7 +211,6 @@ static int cm3323_write_raw(struct iio_dev *indio_dev, | |||
211 | } | 211 | } |
212 | 212 | ||
213 | static const struct iio_info cm3323_info = { | 213 | static const struct iio_info cm3323_info = { |
214 | .driver_module = THIS_MODULE, | ||
215 | .read_raw = cm3323_read_raw, | 214 | .read_raw = cm3323_read_raw, |
216 | .write_raw = cm3323_write_raw, | 215 | .write_raw = cm3323_write_raw, |
217 | .attrs = &cm3323_attribute_group, | 216 | .attrs = &cm3323_attribute_group, |
diff --git a/drivers/iio/light/cm3605.c b/drivers/iio/light/cm3605.c index 980624e9ffb5..e454bc6a33c6 100644 --- a/drivers/iio/light/cm3605.c +++ b/drivers/iio/light/cm3605.c | |||
@@ -126,7 +126,6 @@ static int cm3605_read_raw(struct iio_dev *indio_dev, | |||
126 | } | 126 | } |
127 | 127 | ||
128 | static const struct iio_info cm3605_info = { | 128 | static const struct iio_info cm3605_info = { |
129 | .driver_module = THIS_MODULE, | ||
130 | .read_raw = cm3605_read_raw, | 129 | .read_raw = cm3605_read_raw, |
131 | }; | 130 | }; |
132 | 131 | ||
diff --git a/drivers/iio/light/cm36651.c b/drivers/iio/light/cm36651.c index 9d66e89c57ef..1dd8ed0121b3 100644 --- a/drivers/iio/light/cm36651.c +++ b/drivers/iio/light/cm36651.c | |||
@@ -612,7 +612,6 @@ static const struct attribute_group cm36651_attribute_group = { | |||
612 | }; | 612 | }; |
613 | 613 | ||
614 | static const struct iio_info cm36651_info = { | 614 | static const struct iio_info cm36651_info = { |
615 | .driver_module = THIS_MODULE, | ||
616 | .read_raw = &cm36651_read_raw, | 615 | .read_raw = &cm36651_read_raw, |
617 | .write_raw = &cm36651_write_raw, | 616 | .write_raw = &cm36651_write_raw, |
618 | .read_event_value = &cm36651_read_prox_thresh, | 617 | .read_event_value = &cm36651_read_prox_thresh, |
diff --git a/drivers/iio/light/cros_ec_light_prox.c b/drivers/iio/light/cros_ec_light_prox.c index 721722376fd0..b2a46b390d5c 100644 --- a/drivers/iio/light/cros_ec_light_prox.c +++ b/drivers/iio/light/cros_ec_light_prox.c | |||
@@ -175,7 +175,6 @@ static int cros_ec_light_prox_write(struct iio_dev *indio_dev, | |||
175 | static const struct iio_info cros_ec_light_prox_info = { | 175 | static const struct iio_info cros_ec_light_prox_info = { |
176 | .read_raw = &cros_ec_light_prox_read, | 176 | .read_raw = &cros_ec_light_prox_read, |
177 | .write_raw = &cros_ec_light_prox_write, | 177 | .write_raw = &cros_ec_light_prox_write, |
178 | .driver_module = THIS_MODULE, | ||
179 | }; | 178 | }; |
180 | 179 | ||
181 | static int cros_ec_light_prox_probe(struct platform_device *pdev) | 180 | static int cros_ec_light_prox_probe(struct platform_device *pdev) |
diff --git a/drivers/iio/light/gp2ap020a00f.c b/drivers/iio/light/gp2ap020a00f.c index 6ada9149f142..44b13fbcd093 100644 --- a/drivers/iio/light/gp2ap020a00f.c +++ b/drivers/iio/light/gp2ap020a00f.c | |||
@@ -1384,7 +1384,6 @@ static const struct iio_info gp2ap020a00f_info = { | |||
1384 | .read_event_config = &gp2ap020a00f_read_event_config, | 1384 | .read_event_config = &gp2ap020a00f_read_event_config, |
1385 | .write_event_value = &gp2ap020a00f_write_event_val, | 1385 | .write_event_value = &gp2ap020a00f_write_event_val, |
1386 | .write_event_config = &gp2ap020a00f_write_event_config, | 1386 | .write_event_config = &gp2ap020a00f_write_event_config, |
1387 | .driver_module = THIS_MODULE, | ||
1388 | }; | 1387 | }; |
1389 | 1388 | ||
1390 | static int gp2ap020a00f_buffer_postenable(struct iio_dev *indio_dev) | 1389 | static int gp2ap020a00f_buffer_postenable(struct iio_dev *indio_dev) |
@@ -1481,7 +1480,6 @@ static const struct iio_buffer_setup_ops gp2ap020a00f_buffer_setup_ops = { | |||
1481 | }; | 1480 | }; |
1482 | 1481 | ||
1483 | static const struct iio_trigger_ops gp2ap020a00f_trigger_ops = { | 1482 | static const struct iio_trigger_ops gp2ap020a00f_trigger_ops = { |
1484 | .owner = THIS_MODULE, | ||
1485 | }; | 1483 | }; |
1486 | 1484 | ||
1487 | static int gp2ap020a00f_probe(struct i2c_client *client, | 1485 | static int gp2ap020a00f_probe(struct i2c_client *client, |
diff --git a/drivers/iio/light/hid-sensor-als.c b/drivers/iio/light/hid-sensor-als.c index 059d964772c7..befd693a4a31 100644 --- a/drivers/iio/light/hid-sensor-als.c +++ b/drivers/iio/light/hid-sensor-als.c | |||
@@ -177,7 +177,6 @@ static int als_write_raw(struct iio_dev *indio_dev, | |||
177 | } | 177 | } |
178 | 178 | ||
179 | static const struct iio_info als_info = { | 179 | static const struct iio_info als_info = { |
180 | .driver_module = THIS_MODULE, | ||
181 | .read_raw = &als_read_raw, | 180 | .read_raw = &als_read_raw, |
182 | .write_raw = &als_write_raw, | 181 | .write_raw = &als_write_raw, |
183 | }; | 182 | }; |
diff --git a/drivers/iio/light/hid-sensor-prox.c b/drivers/iio/light/hid-sensor-prox.c index 73fced8a63b7..45107f7537b5 100644 --- a/drivers/iio/light/hid-sensor-prox.c +++ b/drivers/iio/light/hid-sensor-prox.c | |||
@@ -156,7 +156,6 @@ static int prox_write_raw(struct iio_dev *indio_dev, | |||
156 | } | 156 | } |
157 | 157 | ||
158 | static const struct iio_info prox_info = { | 158 | static const struct iio_info prox_info = { |
159 | .driver_module = THIS_MODULE, | ||
160 | .read_raw = &prox_read_raw, | 159 | .read_raw = &prox_read_raw, |
161 | .write_raw = &prox_write_raw, | 160 | .write_raw = &prox_write_raw, |
162 | }; | 161 | }; |
diff --git a/drivers/iio/light/isl29018.c b/drivers/iio/light/isl29018.c index 61f5924b472d..b45400f8fef4 100644 --- a/drivers/iio/light/isl29018.c +++ b/drivers/iio/light/isl29018.c | |||
@@ -624,14 +624,12 @@ static int isl29018_chip_init(struct isl29018_chip *chip) | |||
624 | 624 | ||
625 | static const struct iio_info isl29018_info = { | 625 | static const struct iio_info isl29018_info = { |
626 | .attrs = &isl29018_group, | 626 | .attrs = &isl29018_group, |
627 | .driver_module = THIS_MODULE, | ||
628 | .read_raw = isl29018_read_raw, | 627 | .read_raw = isl29018_read_raw, |
629 | .write_raw = isl29018_write_raw, | 628 | .write_raw = isl29018_write_raw, |
630 | }; | 629 | }; |
631 | 630 | ||
632 | static const struct iio_info isl29023_info = { | 631 | static const struct iio_info isl29023_info = { |
633 | .attrs = &isl29023_group, | 632 | .attrs = &isl29023_group, |
634 | .driver_module = THIS_MODULE, | ||
635 | .read_raw = isl29018_read_raw, | 633 | .read_raw = isl29018_read_raw, |
636 | .write_raw = isl29018_write_raw, | 634 | .write_raw = isl29018_write_raw, |
637 | }; | 635 | }; |
diff --git a/drivers/iio/light/isl29028.c b/drivers/iio/light/isl29028.c index 3d09c1fc4dad..f9912ab4f65c 100644 --- a/drivers/iio/light/isl29028.c +++ b/drivers/iio/light/isl29028.c | |||
@@ -536,7 +536,6 @@ static const struct iio_chan_spec isl29028_channels[] = { | |||
536 | 536 | ||
537 | static const struct iio_info isl29028_info = { | 537 | static const struct iio_info isl29028_info = { |
538 | .attrs = &isl29108_group, | 538 | .attrs = &isl29108_group, |
539 | .driver_module = THIS_MODULE, | ||
540 | .read_raw = isl29028_read_raw, | 539 | .read_raw = isl29028_read_raw, |
541 | .write_raw = isl29028_write_raw, | 540 | .write_raw = isl29028_write_raw, |
542 | }; | 541 | }; |
diff --git a/drivers/iio/light/isl29125.c b/drivers/iio/light/isl29125.c index 1d2c0c8a1d4f..ed38edcd5efe 100644 --- a/drivers/iio/light/isl29125.c +++ b/drivers/iio/light/isl29125.c | |||
@@ -214,7 +214,6 @@ static const struct iio_info isl29125_info = { | |||
214 | .read_raw = isl29125_read_raw, | 214 | .read_raw = isl29125_read_raw, |
215 | .write_raw = isl29125_write_raw, | 215 | .write_raw = isl29125_write_raw, |
216 | .attrs = &isl29125_attribute_group, | 216 | .attrs = &isl29125_attribute_group, |
217 | .driver_module = THIS_MODULE, | ||
218 | }; | 217 | }; |
219 | 218 | ||
220 | static int isl29125_buffer_preenable(struct iio_dev *indio_dev) | 219 | static int isl29125_buffer_preenable(struct iio_dev *indio_dev) |
diff --git a/drivers/iio/light/jsa1212.c b/drivers/iio/light/jsa1212.c index e8a8931b4f50..811505d925b3 100644 --- a/drivers/iio/light/jsa1212.c +++ b/drivers/iio/light/jsa1212.c | |||
@@ -271,7 +271,6 @@ static const struct iio_chan_spec jsa1212_channels[] = { | |||
271 | }; | 271 | }; |
272 | 272 | ||
273 | static const struct iio_info jsa1212_info = { | 273 | static const struct iio_info jsa1212_info = { |
274 | .driver_module = THIS_MODULE, | ||
275 | .read_raw = &jsa1212_read_raw, | 274 | .read_raw = &jsa1212_read_raw, |
276 | }; | 275 | }; |
277 | 276 | ||
diff --git a/drivers/iio/light/lm3533-als.c b/drivers/iio/light/lm3533-als.c index 0443fd2e8757..36208a3652e9 100644 --- a/drivers/iio/light/lm3533-als.c +++ b/drivers/iio/light/lm3533-als.c | |||
@@ -827,7 +827,6 @@ static int lm3533_als_disable(struct lm3533_als *als) | |||
827 | static const struct iio_info lm3533_als_info = { | 827 | static const struct iio_info lm3533_als_info = { |
828 | .attrs = &lm3533_als_attribute_group, | 828 | .attrs = &lm3533_als_attribute_group, |
829 | .event_attrs = &lm3533_als_event_attribute_group, | 829 | .event_attrs = &lm3533_als_event_attribute_group, |
830 | .driver_module = THIS_MODULE, | ||
831 | .read_raw = &lm3533_als_read_raw, | 830 | .read_raw = &lm3533_als_read_raw, |
832 | }; | 831 | }; |
833 | 832 | ||
diff --git a/drivers/iio/light/ltr501.c b/drivers/iio/light/ltr501.c index 67838edd8b37..830a2d45aa4d 100644 --- a/drivers/iio/light/ltr501.c +++ b/drivers/iio/light/ltr501.c | |||
@@ -1158,7 +1158,6 @@ static const struct iio_info ltr501_info_no_irq = { | |||
1158 | .read_raw = ltr501_read_raw, | 1158 | .read_raw = ltr501_read_raw, |
1159 | .write_raw = ltr501_write_raw, | 1159 | .write_raw = ltr501_write_raw, |
1160 | .attrs = <r501_attribute_group, | 1160 | .attrs = <r501_attribute_group, |
1161 | .driver_module = THIS_MODULE, | ||
1162 | }; | 1161 | }; |
1163 | 1162 | ||
1164 | static const struct iio_info ltr501_info = { | 1163 | static const struct iio_info ltr501_info = { |
@@ -1169,14 +1168,12 @@ static const struct iio_info ltr501_info = { | |||
1169 | .write_event_value = <r501_write_event, | 1168 | .write_event_value = <r501_write_event, |
1170 | .read_event_config = <r501_read_event_config, | 1169 | .read_event_config = <r501_read_event_config, |
1171 | .write_event_config = <r501_write_event_config, | 1170 | .write_event_config = <r501_write_event_config, |
1172 | .driver_module = THIS_MODULE, | ||
1173 | }; | 1171 | }; |
1174 | 1172 | ||
1175 | static const struct iio_info ltr301_info_no_irq = { | 1173 | static const struct iio_info ltr301_info_no_irq = { |
1176 | .read_raw = ltr501_read_raw, | 1174 | .read_raw = ltr501_read_raw, |
1177 | .write_raw = ltr501_write_raw, | 1175 | .write_raw = ltr501_write_raw, |
1178 | .attrs = <r301_attribute_group, | 1176 | .attrs = <r301_attribute_group, |
1179 | .driver_module = THIS_MODULE, | ||
1180 | }; | 1177 | }; |
1181 | 1178 | ||
1182 | static const struct iio_info ltr301_info = { | 1179 | static const struct iio_info ltr301_info = { |
@@ -1187,7 +1184,6 @@ static const struct iio_info ltr301_info = { | |||
1187 | .write_event_value = <r501_write_event, | 1184 | .write_event_value = <r501_write_event, |
1188 | .read_event_config = <r501_read_event_config, | 1185 | .read_event_config = <r501_read_event_config, |
1189 | .write_event_config = <r501_write_event_config, | 1186 | .write_event_config = <r501_write_event_config, |
1190 | .driver_module = THIS_MODULE, | ||
1191 | }; | 1187 | }; |
1192 | 1188 | ||
1193 | static struct ltr501_chip_info ltr501_chip_info_tbl[] = { | 1189 | static struct ltr501_chip_info ltr501_chip_info_tbl[] = { |
diff --git a/drivers/iio/light/max44000.c b/drivers/iio/light/max44000.c index 81bd8e8da4a6..bcdb0eb9e537 100644 --- a/drivers/iio/light/max44000.c +++ b/drivers/iio/light/max44000.c | |||
@@ -402,7 +402,6 @@ static const struct attribute_group max44000_attribute_group = { | |||
402 | }; | 402 | }; |
403 | 403 | ||
404 | static const struct iio_info max44000_info = { | 404 | static const struct iio_info max44000_info = { |
405 | .driver_module = THIS_MODULE, | ||
406 | .read_raw = max44000_read_raw, | 405 | .read_raw = max44000_read_raw, |
407 | .write_raw = max44000_write_raw, | 406 | .write_raw = max44000_write_raw, |
408 | .write_raw_get_fmt = max44000_write_raw_get_fmt, | 407 | .write_raw_get_fmt = max44000_write_raw_get_fmt, |
diff --git a/drivers/iio/light/opt3001.c b/drivers/iio/light/opt3001.c index b91ebc3483ce..54d88b60e303 100644 --- a/drivers/iio/light/opt3001.c +++ b/drivers/iio/light/opt3001.c | |||
@@ -585,7 +585,6 @@ err: | |||
585 | } | 585 | } |
586 | 586 | ||
587 | static const struct iio_info opt3001_info = { | 587 | static const struct iio_info opt3001_info = { |
588 | .driver_module = THIS_MODULE, | ||
589 | .attrs = &opt3001_attribute_group, | 588 | .attrs = &opt3001_attribute_group, |
590 | .read_raw = opt3001_read_raw, | 589 | .read_raw = opt3001_read_raw, |
591 | .write_raw = opt3001_write_raw, | 590 | .write_raw = opt3001_write_raw, |
diff --git a/drivers/iio/light/pa12203001.c b/drivers/iio/light/pa12203001.c index 76a9e12b46bc..30ea1a088dd9 100644 --- a/drivers/iio/light/pa12203001.c +++ b/drivers/iio/light/pa12203001.c | |||
@@ -306,7 +306,6 @@ static int pa12203001_write_raw(struct iio_dev *indio_dev, | |||
306 | } | 306 | } |
307 | 307 | ||
308 | static const struct iio_info pa12203001_info = { | 308 | static const struct iio_info pa12203001_info = { |
309 | .driver_module = THIS_MODULE, | ||
310 | .read_raw = pa12203001_read_raw, | 309 | .read_raw = pa12203001_read_raw, |
311 | .write_raw = pa12203001_write_raw, | 310 | .write_raw = pa12203001_write_raw, |
312 | .attrs = &pa12203001_attr_group, | 311 | .attrs = &pa12203001_attr_group, |
diff --git a/drivers/iio/light/rpr0521.c b/drivers/iio/light/rpr0521.c index a6efa12613a2..ffe9ce798ea2 100644 --- a/drivers/iio/light/rpr0521.c +++ b/drivers/iio/light/rpr0521.c | |||
@@ -538,7 +538,6 @@ static int rpr0521_pxs_drdy_set_state(struct iio_trigger *trigger, | |||
538 | 538 | ||
539 | static const struct iio_trigger_ops rpr0521_trigger_ops = { | 539 | static const struct iio_trigger_ops rpr0521_trigger_ops = { |
540 | .set_trigger_state = rpr0521_pxs_drdy_set_state, | 540 | .set_trigger_state = rpr0521_pxs_drdy_set_state, |
541 | .owner = THIS_MODULE, | ||
542 | }; | 541 | }; |
543 | 542 | ||
544 | 543 | ||
@@ -830,7 +829,6 @@ static int rpr0521_write_raw(struct iio_dev *indio_dev, | |||
830 | } | 829 | } |
831 | 830 | ||
832 | static const struct iio_info rpr0521_info = { | 831 | static const struct iio_info rpr0521_info = { |
833 | .driver_module = THIS_MODULE, | ||
834 | .read_raw = rpr0521_read_raw, | 832 | .read_raw = rpr0521_read_raw, |
835 | .write_raw = rpr0521_write_raw, | 833 | .write_raw = rpr0521_write_raw, |
836 | .attrs = &rpr0521_attribute_group, | 834 | .attrs = &rpr0521_attribute_group, |
diff --git a/drivers/iio/light/si1145.c b/drivers/iio/light/si1145.c index 096034c126a4..76f16f9c7616 100644 --- a/drivers/iio/light/si1145.c +++ b/drivers/iio/light/si1145.c | |||
@@ -989,14 +989,12 @@ static const struct attribute_group si114x_attribute_group = { | |||
989 | static const struct iio_info si1132_info = { | 989 | static const struct iio_info si1132_info = { |
990 | .read_raw = si1145_read_raw, | 990 | .read_raw = si1145_read_raw, |
991 | .write_raw = si1145_write_raw, | 991 | .write_raw = si1145_write_raw, |
992 | .driver_module = THIS_MODULE, | ||
993 | .attrs = &si1132_attribute_group, | 992 | .attrs = &si1132_attribute_group, |
994 | }; | 993 | }; |
995 | 994 | ||
996 | static const struct iio_info si114x_info = { | 995 | static const struct iio_info si114x_info = { |
997 | .read_raw = si1145_read_raw, | 996 | .read_raw = si1145_read_raw, |
998 | .write_raw = si1145_write_raw, | 997 | .write_raw = si1145_write_raw, |
999 | .driver_module = THIS_MODULE, | ||
1000 | .attrs = &si114x_attribute_group, | 998 | .attrs = &si114x_attribute_group, |
1001 | }; | 999 | }; |
1002 | 1000 | ||
@@ -1237,7 +1235,6 @@ disable: | |||
1237 | } | 1235 | } |
1238 | 1236 | ||
1239 | static const struct iio_trigger_ops si1145_trigger_ops = { | 1237 | static const struct iio_trigger_ops si1145_trigger_ops = { |
1240 | .owner = THIS_MODULE, | ||
1241 | .set_trigger_state = si1145_trigger_set_state, | 1238 | .set_trigger_state = si1145_trigger_set_state, |
1242 | }; | 1239 | }; |
1243 | 1240 | ||
diff --git a/drivers/iio/light/stk3310.c b/drivers/iio/light/stk3310.c index 45cf8b0a4363..6e2a169da950 100644 --- a/drivers/iio/light/stk3310.c +++ b/drivers/iio/light/stk3310.c | |||
@@ -409,7 +409,6 @@ static int stk3310_write_raw(struct iio_dev *indio_dev, | |||
409 | } | 409 | } |
410 | 410 | ||
411 | static const struct iio_info stk3310_info = { | 411 | static const struct iio_info stk3310_info = { |
412 | .driver_module = THIS_MODULE, | ||
413 | .read_raw = stk3310_read_raw, | 412 | .read_raw = stk3310_read_raw, |
414 | .write_raw = stk3310_write_raw, | 413 | .write_raw = stk3310_write_raw, |
415 | .attrs = &stk3310_attribute_group, | 414 | .attrs = &stk3310_attribute_group, |
diff --git a/drivers/iio/light/tcs3414.c b/drivers/iio/light/tcs3414.c index a795afb7667b..205e5659ce6b 100644 --- a/drivers/iio/light/tcs3414.c +++ b/drivers/iio/light/tcs3414.c | |||
@@ -241,7 +241,6 @@ static const struct iio_info tcs3414_info = { | |||
241 | .read_raw = tcs3414_read_raw, | 241 | .read_raw = tcs3414_read_raw, |
242 | .write_raw = tcs3414_write_raw, | 242 | .write_raw = tcs3414_write_raw, |
243 | .attrs = &tcs3414_attribute_group, | 243 | .attrs = &tcs3414_attribute_group, |
244 | .driver_module = THIS_MODULE, | ||
245 | }; | 244 | }; |
246 | 245 | ||
247 | static int tcs3414_buffer_preenable(struct iio_dev *indio_dev) | 246 | static int tcs3414_buffer_preenable(struct iio_dev *indio_dev) |
diff --git a/drivers/iio/light/tcs3472.c b/drivers/iio/light/tcs3472.c index 09e6ca5e332e..9540a5c1d746 100644 --- a/drivers/iio/light/tcs3472.c +++ b/drivers/iio/light/tcs3472.c | |||
@@ -246,7 +246,6 @@ static const struct iio_info tcs3472_info = { | |||
246 | .read_raw = tcs3472_read_raw, | 246 | .read_raw = tcs3472_read_raw, |
247 | .write_raw = tcs3472_write_raw, | 247 | .write_raw = tcs3472_write_raw, |
248 | .attrs = &tcs3472_attribute_group, | 248 | .attrs = &tcs3472_attribute_group, |
249 | .driver_module = THIS_MODULE, | ||
250 | }; | 249 | }; |
251 | 250 | ||
252 | static int tcs3472_probe(struct i2c_client *client, | 251 | static int tcs3472_probe(struct i2c_client *client, |
diff --git a/drivers/iio/light/tsl2563.c b/drivers/iio/light/tsl2563.c index 7599693f7fe9..6bbb0b1e6032 100644 --- a/drivers/iio/light/tsl2563.c +++ b/drivers/iio/light/tsl2563.c | |||
@@ -697,13 +697,11 @@ static int tsl2563_read_interrupt_config(struct iio_dev *indio_dev, | |||
697 | } | 697 | } |
698 | 698 | ||
699 | static const struct iio_info tsl2563_info_no_irq = { | 699 | static const struct iio_info tsl2563_info_no_irq = { |
700 | .driver_module = THIS_MODULE, | ||
701 | .read_raw = &tsl2563_read_raw, | 700 | .read_raw = &tsl2563_read_raw, |
702 | .write_raw = &tsl2563_write_raw, | 701 | .write_raw = &tsl2563_write_raw, |
703 | }; | 702 | }; |
704 | 703 | ||
705 | static const struct iio_info tsl2563_info = { | 704 | static const struct iio_info tsl2563_info = { |
706 | .driver_module = THIS_MODULE, | ||
707 | .read_raw = &tsl2563_read_raw, | 705 | .read_raw = &tsl2563_read_raw, |
708 | .write_raw = &tsl2563_write_raw, | 706 | .write_raw = &tsl2563_write_raw, |
709 | .read_event_value = &tsl2563_read_thresh, | 707 | .read_event_value = &tsl2563_read_thresh, |
diff --git a/drivers/iio/light/tsl2583.c b/drivers/iio/light/tsl2583.c index fb711ed4862e..f2e50edaa242 100644 --- a/drivers/iio/light/tsl2583.c +++ b/drivers/iio/light/tsl2583.c | |||
@@ -804,7 +804,6 @@ static int tsl2583_write_raw(struct iio_dev *indio_dev, | |||
804 | 804 | ||
805 | static const struct iio_info tsl2583_info = { | 805 | static const struct iio_info tsl2583_info = { |
806 | .attrs = &tsl2583_attribute_group, | 806 | .attrs = &tsl2583_attribute_group, |
807 | .driver_module = THIS_MODULE, | ||
808 | .read_raw = tsl2583_read_raw, | 807 | .read_raw = tsl2583_read_raw, |
809 | .write_raw = tsl2583_write_raw, | 808 | .write_raw = tsl2583_write_raw, |
810 | }; | 809 | }; |
diff --git a/drivers/iio/light/tsl4531.c b/drivers/iio/light/tsl4531.c index cf94ec72b181..06171cb76e23 100644 --- a/drivers/iio/light/tsl4531.c +++ b/drivers/iio/light/tsl4531.c | |||
@@ -144,7 +144,6 @@ static const struct iio_info tsl4531_info = { | |||
144 | .read_raw = tsl4531_read_raw, | 144 | .read_raw = tsl4531_read_raw, |
145 | .write_raw = tsl4531_write_raw, | 145 | .write_raw = tsl4531_write_raw, |
146 | .attrs = &tsl4531_attribute_group, | 146 | .attrs = &tsl4531_attribute_group, |
147 | .driver_module = THIS_MODULE, | ||
148 | }; | 147 | }; |
149 | 148 | ||
150 | static int tsl4531_check_id(struct i2c_client *client) | 149 | static int tsl4531_check_id(struct i2c_client *client) |
diff --git a/drivers/iio/light/us5182d.c b/drivers/iio/light/us5182d.c index d571ad7291ed..68e52943879a 100644 --- a/drivers/iio/light/us5182d.c +++ b/drivers/iio/light/us5182d.c | |||
@@ -714,7 +714,6 @@ err: | |||
714 | } | 714 | } |
715 | 715 | ||
716 | static const struct iio_info us5182d_info = { | 716 | static const struct iio_info us5182d_info = { |
717 | .driver_module = THIS_MODULE, | ||
718 | .read_raw = us5182d_read_raw, | 717 | .read_raw = us5182d_read_raw, |
719 | .write_raw = us5182d_write_raw, | 718 | .write_raw = us5182d_write_raw, |
720 | .attrs = &us5182d_attr_group, | 719 | .attrs = &us5182d_attr_group, |
diff --git a/drivers/iio/light/vcnl4000.c b/drivers/iio/light/vcnl4000.c index 360b6e98137a..c599a90506ad 100644 --- a/drivers/iio/light/vcnl4000.c +++ b/drivers/iio/light/vcnl4000.c | |||
@@ -155,7 +155,6 @@ static int vcnl4000_read_raw(struct iio_dev *indio_dev, | |||
155 | 155 | ||
156 | static const struct iio_info vcnl4000_info = { | 156 | static const struct iio_info vcnl4000_info = { |
157 | .read_raw = vcnl4000_read_raw, | 157 | .read_raw = vcnl4000_read_raw, |
158 | .driver_module = THIS_MODULE, | ||
159 | }; | 158 | }; |
160 | 159 | ||
161 | static int vcnl4000_probe(struct i2c_client *client, | 160 | static int vcnl4000_probe(struct i2c_client *client, |
diff --git a/drivers/iio/light/veml6070.c b/drivers/iio/light/veml6070.c index bc1c4cb782cd..f4bf3c5b5eda 100644 --- a/drivers/iio/light/veml6070.c +++ b/drivers/iio/light/veml6070.c | |||
@@ -136,7 +136,6 @@ static int veml6070_read_raw(struct iio_dev *indio_dev, | |||
136 | 136 | ||
137 | static const struct iio_info veml6070_info = { | 137 | static const struct iio_info veml6070_info = { |
138 | .read_raw = veml6070_read_raw, | 138 | .read_raw = veml6070_read_raw, |
139 | .driver_module = THIS_MODULE, | ||
140 | }; | 139 | }; |
141 | 140 | ||
142 | static int veml6070_probe(struct i2c_client *client, | 141 | static int veml6070_probe(struct i2c_client *client, |
diff --git a/drivers/iio/light/vl6180.c b/drivers/iio/light/vl6180.c index 6e25b724d941..2306967f574f 100644 --- a/drivers/iio/light/vl6180.c +++ b/drivers/iio/light/vl6180.c | |||
@@ -429,7 +429,6 @@ static const struct iio_info vl6180_info = { | |||
429 | .read_raw = vl6180_read_raw, | 429 | .read_raw = vl6180_read_raw, |
430 | .write_raw = vl6180_write_raw, | 430 | .write_raw = vl6180_write_raw, |
431 | .attrs = &vl6180_attribute_group, | 431 | .attrs = &vl6180_attribute_group, |
432 | .driver_module = THIS_MODULE, | ||
433 | }; | 432 | }; |
434 | 433 | ||
435 | static int vl6180_init(struct vl6180_data *data) | 434 | static int vl6180_init(struct vl6180_data *data) |