diff options
author | Jonathan Cameron <jic23@kernel.org> | 2017-07-23 12:25:47 -0400 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2017-08-22 16:22:25 -0400 |
commit | 52b31bcc9372f2925f4898d179c655687c4aa179 (patch) | |
tree | 4014c55eb5fcb1f7fc1d0da264ed0954e073bc27 | |
parent | 04581681df3048b7819c25419de1ea73a2832808 (diff) |
iio:adc: 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>
73 files changed, 0 insertions, 92 deletions
diff --git a/drivers/iio/adc/ad7266.c b/drivers/iio/adc/ad7266.c index b8d5cfd57ec4..605eb5e7e829 100644 --- a/drivers/iio/adc/ad7266.c +++ b/drivers/iio/adc/ad7266.c | |||
@@ -280,7 +280,6 @@ static AD7266_DECLARE_DIFF_CHANNELS_FIXED(u, 'u'); | |||
280 | static const struct iio_info ad7266_info = { | 280 | static const struct iio_info ad7266_info = { |
281 | .read_raw = &ad7266_read_raw, | 281 | .read_raw = &ad7266_read_raw, |
282 | .update_scan_mode = &ad7266_update_scan_mode, | 282 | .update_scan_mode = &ad7266_update_scan_mode, |
283 | .driver_module = THIS_MODULE, | ||
284 | }; | 283 | }; |
285 | 284 | ||
286 | static const unsigned long ad7266_available_scan_masks[] = { | 285 | static const unsigned long ad7266_available_scan_masks[] = { |
diff --git a/drivers/iio/adc/ad7291.c b/drivers/iio/adc/ad7291.c index 1d90b02732bb..a862b5d8fb4b 100644 --- a/drivers/iio/adc/ad7291.c +++ b/drivers/iio/adc/ad7291.c | |||
@@ -461,7 +461,6 @@ static const struct iio_info ad7291_info = { | |||
461 | .write_event_config = &ad7291_write_event_config, | 461 | .write_event_config = &ad7291_write_event_config, |
462 | .read_event_value = &ad7291_read_event_value, | 462 | .read_event_value = &ad7291_read_event_value, |
463 | .write_event_value = &ad7291_write_event_value, | 463 | .write_event_value = &ad7291_write_event_value, |
464 | .driver_module = THIS_MODULE, | ||
465 | }; | 464 | }; |
466 | 465 | ||
467 | static int ad7291_probe(struct i2c_client *client, | 466 | static int ad7291_probe(struct i2c_client *client, |
diff --git a/drivers/iio/adc/ad7298.c b/drivers/iio/adc/ad7298.c index e399bf04c73a..2b20c6c8ec7f 100644 --- a/drivers/iio/adc/ad7298.c +++ b/drivers/iio/adc/ad7298.c | |||
@@ -280,7 +280,6 @@ static int ad7298_read_raw(struct iio_dev *indio_dev, | |||
280 | static const struct iio_info ad7298_info = { | 280 | static const struct iio_info ad7298_info = { |
281 | .read_raw = &ad7298_read_raw, | 281 | .read_raw = &ad7298_read_raw, |
282 | .update_scan_mode = ad7298_update_scan_mode, | 282 | .update_scan_mode = ad7298_update_scan_mode, |
283 | .driver_module = THIS_MODULE, | ||
284 | }; | 283 | }; |
285 | 284 | ||
286 | static int ad7298_probe(struct spi_device *spi) | 285 | static int ad7298_probe(struct spi_device *spi) |
diff --git a/drivers/iio/adc/ad7476.c b/drivers/iio/adc/ad7476.c index b7ecf9aab90f..b7706bf10ffe 100644 --- a/drivers/iio/adc/ad7476.c +++ b/drivers/iio/adc/ad7476.c | |||
@@ -195,7 +195,6 @@ static const struct ad7476_chip_info ad7476_chip_info_tbl[] = { | |||
195 | }; | 195 | }; |
196 | 196 | ||
197 | static const struct iio_info ad7476_info = { | 197 | static const struct iio_info ad7476_info = { |
198 | .driver_module = THIS_MODULE, | ||
199 | .read_raw = &ad7476_read_raw, | 198 | .read_raw = &ad7476_read_raw, |
200 | }; | 199 | }; |
201 | 200 | ||
diff --git a/drivers/iio/adc/ad7766.c b/drivers/iio/adc/ad7766.c index ce45037295d8..3ae14fc8c649 100644 --- a/drivers/iio/adc/ad7766.c +++ b/drivers/iio/adc/ad7766.c | |||
@@ -185,7 +185,6 @@ static const struct iio_buffer_setup_ops ad7766_buffer_setup_ops = { | |||
185 | }; | 185 | }; |
186 | 186 | ||
187 | static const struct iio_info ad7766_info = { | 187 | static const struct iio_info ad7766_info = { |
188 | .driver_module = THIS_MODULE, | ||
189 | .read_raw = &ad7766_read_raw, | 188 | .read_raw = &ad7766_read_raw, |
190 | }; | 189 | }; |
191 | 190 | ||
@@ -208,7 +207,6 @@ static int ad7766_set_trigger_state(struct iio_trigger *trig, bool enable) | |||
208 | } | 207 | } |
209 | 208 | ||
210 | static const struct iio_trigger_ops ad7766_trigger_ops = { | 209 | static const struct iio_trigger_ops ad7766_trigger_ops = { |
211 | .owner = THIS_MODULE, | ||
212 | .set_trigger_state = ad7766_set_trigger_state, | 210 | .set_trigger_state = ad7766_set_trigger_state, |
213 | .validate_device = iio_trigger_validate_own_device, | 211 | .validate_device = iio_trigger_validate_own_device, |
214 | }; | 212 | }; |
diff --git a/drivers/iio/adc/ad7791.c b/drivers/iio/adc/ad7791.c index 34e353c43ac8..70fbf92f9827 100644 --- a/drivers/iio/adc/ad7791.c +++ b/drivers/iio/adc/ad7791.c | |||
@@ -308,13 +308,11 @@ static const struct iio_info ad7791_info = { | |||
308 | .read_raw = &ad7791_read_raw, | 308 | .read_raw = &ad7791_read_raw, |
309 | .attrs = &ad7791_attribute_group, | 309 | .attrs = &ad7791_attribute_group, |
310 | .validate_trigger = ad_sd_validate_trigger, | 310 | .validate_trigger = ad_sd_validate_trigger, |
311 | .driver_module = THIS_MODULE, | ||
312 | }; | 311 | }; |
313 | 312 | ||
314 | static const struct iio_info ad7791_no_filter_info = { | 313 | static const struct iio_info ad7791_no_filter_info = { |
315 | .read_raw = &ad7791_read_raw, | 314 | .read_raw = &ad7791_read_raw, |
316 | .validate_trigger = ad_sd_validate_trigger, | 315 | .validate_trigger = ad_sd_validate_trigger, |
317 | .driver_module = THIS_MODULE, | ||
318 | }; | 316 | }; |
319 | 317 | ||
320 | static int ad7791_setup(struct ad7791_state *st, | 318 | static int ad7791_setup(struct ad7791_state *st, |
diff --git a/drivers/iio/adc/ad7793.c b/drivers/iio/adc/ad7793.c index e6706a09e100..c40263ad881f 100644 --- a/drivers/iio/adc/ad7793.c +++ b/drivers/iio/adc/ad7793.c | |||
@@ -563,7 +563,6 @@ static const struct iio_info ad7793_info = { | |||
563 | .write_raw_get_fmt = &ad7793_write_raw_get_fmt, | 563 | .write_raw_get_fmt = &ad7793_write_raw_get_fmt, |
564 | .attrs = &ad7793_attribute_group, | 564 | .attrs = &ad7793_attribute_group, |
565 | .validate_trigger = ad_sd_validate_trigger, | 565 | .validate_trigger = ad_sd_validate_trigger, |
566 | .driver_module = THIS_MODULE, | ||
567 | }; | 566 | }; |
568 | 567 | ||
569 | static const struct iio_info ad7797_info = { | 568 | static const struct iio_info ad7797_info = { |
@@ -572,7 +571,6 @@ static const struct iio_info ad7797_info = { | |||
572 | .write_raw_get_fmt = &ad7793_write_raw_get_fmt, | 571 | .write_raw_get_fmt = &ad7793_write_raw_get_fmt, |
573 | .attrs = &ad7793_attribute_group, | 572 | .attrs = &ad7793_attribute_group, |
574 | .validate_trigger = ad_sd_validate_trigger, | 573 | .validate_trigger = ad_sd_validate_trigger, |
575 | .driver_module = THIS_MODULE, | ||
576 | }; | 574 | }; |
577 | 575 | ||
578 | #define DECLARE_AD7793_CHANNELS(_name, _b, _sb, _s) \ | 576 | #define DECLARE_AD7793_CHANNELS(_name, _b, _sb, _s) \ |
diff --git a/drivers/iio/adc/ad7887.c b/drivers/iio/adc/ad7887.c index 7a483bfbd70c..205c0f1761aa 100644 --- a/drivers/iio/adc/ad7887.c +++ b/drivers/iio/adc/ad7887.c | |||
@@ -229,7 +229,6 @@ static const struct ad7887_chip_info ad7887_chip_info_tbl[] = { | |||
229 | 229 | ||
230 | static const struct iio_info ad7887_info = { | 230 | static const struct iio_info ad7887_info = { |
231 | .read_raw = &ad7887_read_raw, | 231 | .read_raw = &ad7887_read_raw, |
232 | .driver_module = THIS_MODULE, | ||
233 | }; | 232 | }; |
234 | 233 | ||
235 | static int ad7887_probe(struct spi_device *spi) | 234 | static int ad7887_probe(struct spi_device *spi) |
diff --git a/drivers/iio/adc/ad7923.c b/drivers/iio/adc/ad7923.c index 77a675e11ebb..ffb7e089969c 100644 --- a/drivers/iio/adc/ad7923.c +++ b/drivers/iio/adc/ad7923.c | |||
@@ -262,7 +262,6 @@ static int ad7923_read_raw(struct iio_dev *indio_dev, | |||
262 | static const struct iio_info ad7923_info = { | 262 | static const struct iio_info ad7923_info = { |
263 | .read_raw = &ad7923_read_raw, | 263 | .read_raw = &ad7923_read_raw, |
264 | .update_scan_mode = ad7923_update_scan_mode, | 264 | .update_scan_mode = ad7923_update_scan_mode, |
265 | .driver_module = THIS_MODULE, | ||
266 | }; | 265 | }; |
267 | 266 | ||
268 | static int ad7923_probe(struct spi_device *spi) | 267 | static int ad7923_probe(struct spi_device *spi) |
diff --git a/drivers/iio/adc/ad799x.c b/drivers/iio/adc/ad799x.c index 22426ae4af97..e1da67d5ee22 100644 --- a/drivers/iio/adc/ad799x.c +++ b/drivers/iio/adc/ad799x.c | |||
@@ -526,13 +526,11 @@ static const struct attribute_group ad799x_event_attrs_group = { | |||
526 | 526 | ||
527 | static const struct iio_info ad7991_info = { | 527 | static const struct iio_info ad7991_info = { |
528 | .read_raw = &ad799x_read_raw, | 528 | .read_raw = &ad799x_read_raw, |
529 | .driver_module = THIS_MODULE, | ||
530 | .update_scan_mode = ad799x_update_scan_mode, | 529 | .update_scan_mode = ad799x_update_scan_mode, |
531 | }; | 530 | }; |
532 | 531 | ||
533 | static const struct iio_info ad7993_4_7_8_noirq_info = { | 532 | static const struct iio_info ad7993_4_7_8_noirq_info = { |
534 | .read_raw = &ad799x_read_raw, | 533 | .read_raw = &ad799x_read_raw, |
535 | .driver_module = THIS_MODULE, | ||
536 | .update_scan_mode = ad799x_update_scan_mode, | 534 | .update_scan_mode = ad799x_update_scan_mode, |
537 | }; | 535 | }; |
538 | 536 | ||
@@ -543,7 +541,6 @@ static const struct iio_info ad7993_4_7_8_irq_info = { | |||
543 | .write_event_config = &ad799x_write_event_config, | 541 | .write_event_config = &ad799x_write_event_config, |
544 | .read_event_value = &ad799x_read_event_value, | 542 | .read_event_value = &ad799x_read_event_value, |
545 | .write_event_value = &ad799x_write_event_value, | 543 | .write_event_value = &ad799x_write_event_value, |
546 | .driver_module = THIS_MODULE, | ||
547 | .update_scan_mode = ad799x_update_scan_mode, | 544 | .update_scan_mode = ad799x_update_scan_mode, |
548 | }; | 545 | }; |
549 | 546 | ||
diff --git a/drivers/iio/adc/ad_sigma_delta.c b/drivers/iio/adc/ad_sigma_delta.c index d10bd0c97233..e3ed74ee41d1 100644 --- a/drivers/iio/adc/ad_sigma_delta.c +++ b/drivers/iio/adc/ad_sigma_delta.c | |||
@@ -435,7 +435,6 @@ int ad_sd_validate_trigger(struct iio_dev *indio_dev, struct iio_trigger *trig) | |||
435 | EXPORT_SYMBOL_GPL(ad_sd_validate_trigger); | 435 | EXPORT_SYMBOL_GPL(ad_sd_validate_trigger); |
436 | 436 | ||
437 | static const struct iio_trigger_ops ad_sd_trigger_ops = { | 437 | static const struct iio_trigger_ops ad_sd_trigger_ops = { |
438 | .owner = THIS_MODULE, | ||
439 | }; | 438 | }; |
440 | 439 | ||
441 | static int ad_sd_probe_trigger(struct iio_dev *indio_dev) | 440 | static int ad_sd_probe_trigger(struct iio_dev *indio_dev) |
diff --git a/drivers/iio/adc/aspeed_adc.c b/drivers/iio/adc/aspeed_adc.c index c02b23d675cb..8a958d5f1905 100644 --- a/drivers/iio/adc/aspeed_adc.c +++ b/drivers/iio/adc/aspeed_adc.c | |||
@@ -165,7 +165,6 @@ static int aspeed_adc_reg_access(struct iio_dev *indio_dev, | |||
165 | } | 165 | } |
166 | 166 | ||
167 | static const struct iio_info aspeed_adc_iio_info = { | 167 | static const struct iio_info aspeed_adc_iio_info = { |
168 | .driver_module = THIS_MODULE, | ||
169 | .read_raw = aspeed_adc_read_raw, | 168 | .read_raw = aspeed_adc_read_raw, |
170 | .write_raw = aspeed_adc_write_raw, | 169 | .write_raw = aspeed_adc_write_raw, |
171 | .debugfs_reg_access = aspeed_adc_reg_access, | 170 | .debugfs_reg_access = aspeed_adc_reg_access, |
diff --git a/drivers/iio/adc/at91-sama5d2_adc.c b/drivers/iio/adc/at91-sama5d2_adc.c index bc5b38e3a147..318601bad354 100644 --- a/drivers/iio/adc/at91-sama5d2_adc.c +++ b/drivers/iio/adc/at91-sama5d2_adc.c | |||
@@ -338,7 +338,6 @@ static int at91_adc_reenable_trigger(struct iio_trigger *trig) | |||
338 | } | 338 | } |
339 | 339 | ||
340 | static const struct iio_trigger_ops at91_adc_trigger_ops = { | 340 | static const struct iio_trigger_ops at91_adc_trigger_ops = { |
341 | .owner = THIS_MODULE, | ||
342 | .set_trigger_state = &at91_adc_configure_trigger, | 341 | .set_trigger_state = &at91_adc_configure_trigger, |
343 | .try_reenable = &at91_adc_reenable_trigger, | 342 | .try_reenable = &at91_adc_reenable_trigger, |
344 | }; | 343 | }; |
@@ -574,7 +573,6 @@ static int at91_adc_write_raw(struct iio_dev *indio_dev, | |||
574 | static const struct iio_info at91_adc_info = { | 573 | static const struct iio_info at91_adc_info = { |
575 | .read_raw = &at91_adc_read_raw, | 574 | .read_raw = &at91_adc_read_raw, |
576 | .write_raw = &at91_adc_write_raw, | 575 | .write_raw = &at91_adc_write_raw, |
577 | .driver_module = THIS_MODULE, | ||
578 | }; | 576 | }; |
579 | 577 | ||
580 | static void at91_adc_hw_init(struct at91_adc_state *st) | 578 | static void at91_adc_hw_init(struct at91_adc_state *st) |
diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c index 15109728cae7..3836d4222a3e 100644 --- a/drivers/iio/adc/at91_adc.c +++ b/drivers/iio/adc/at91_adc.c | |||
@@ -594,7 +594,6 @@ static int at91_adc_configure_trigger(struct iio_trigger *trig, bool state) | |||
594 | } | 594 | } |
595 | 595 | ||
596 | static const struct iio_trigger_ops at91_adc_trigger_ops = { | 596 | static const struct iio_trigger_ops at91_adc_trigger_ops = { |
597 | .owner = THIS_MODULE, | ||
598 | .set_trigger_state = &at91_adc_configure_trigger, | 597 | .set_trigger_state = &at91_adc_configure_trigger, |
599 | }; | 598 | }; |
600 | 599 | ||
@@ -976,7 +975,6 @@ static int at91_adc_probe_pdata(struct at91_adc_state *st, | |||
976 | } | 975 | } |
977 | 976 | ||
978 | static const struct iio_info at91_adc_info = { | 977 | static const struct iio_info at91_adc_info = { |
979 | .driver_module = THIS_MODULE, | ||
980 | .read_raw = &at91_adc_read_raw, | 978 | .read_raw = &at91_adc_read_raw, |
981 | }; | 979 | }; |
982 | 980 | ||
diff --git a/drivers/iio/adc/axp20x_adc.c b/drivers/iio/adc/axp20x_adc.c index 11e177180ea0..a30a97245e91 100644 --- a/drivers/iio/adc/axp20x_adc.c +++ b/drivers/iio/adc/axp20x_adc.c | |||
@@ -464,12 +464,10 @@ static int axp20x_write_raw(struct iio_dev *indio_dev, | |||
464 | static const struct iio_info axp20x_adc_iio_info = { | 464 | static const struct iio_info axp20x_adc_iio_info = { |
465 | .read_raw = axp20x_read_raw, | 465 | .read_raw = axp20x_read_raw, |
466 | .write_raw = axp20x_write_raw, | 466 | .write_raw = axp20x_write_raw, |
467 | .driver_module = THIS_MODULE, | ||
468 | }; | 467 | }; |
469 | 468 | ||
470 | static const struct iio_info axp22x_adc_iio_info = { | 469 | static const struct iio_info axp22x_adc_iio_info = { |
471 | .read_raw = axp22x_read_raw, | 470 | .read_raw = axp22x_read_raw, |
472 | .driver_module = THIS_MODULE, | ||
473 | }; | 471 | }; |
474 | 472 | ||
475 | static int axp20x_adc_rate(int rate) | 473 | static int axp20x_adc_rate(int rate) |
diff --git a/drivers/iio/adc/axp288_adc.c b/drivers/iio/adc/axp288_adc.c index 462a99c13e7a..60c9e853dd81 100644 --- a/drivers/iio/adc/axp288_adc.c +++ b/drivers/iio/adc/axp288_adc.c | |||
@@ -183,7 +183,6 @@ static int axp288_adc_set_state(struct regmap *regmap) | |||
183 | 183 | ||
184 | static const struct iio_info axp288_adc_iio_info = { | 184 | static const struct iio_info axp288_adc_iio_info = { |
185 | .read_raw = &axp288_adc_read_raw, | 185 | .read_raw = &axp288_adc_read_raw, |
186 | .driver_module = THIS_MODULE, | ||
187 | }; | 186 | }; |
188 | 187 | ||
189 | static int axp288_adc_probe(struct platform_device *pdev) | 188 | static int axp288_adc_probe(struct platform_device *pdev) |
diff --git a/drivers/iio/adc/bcm_iproc_adc.c b/drivers/iio/adc/bcm_iproc_adc.c index 7f4f9c4150e3..7af59a4bbd8d 100644 --- a/drivers/iio/adc/bcm_iproc_adc.c +++ b/drivers/iio/adc/bcm_iproc_adc.c | |||
@@ -492,7 +492,6 @@ static int iproc_adc_read_raw(struct iio_dev *indio_dev, | |||
492 | 492 | ||
493 | static const struct iio_info iproc_adc_iio_info = { | 493 | static const struct iio_info iproc_adc_iio_info = { |
494 | .read_raw = &iproc_adc_read_raw, | 494 | .read_raw = &iproc_adc_read_raw, |
495 | .driver_module = THIS_MODULE, | ||
496 | }; | 495 | }; |
497 | 496 | ||
498 | #define IPROC_ADC_CHANNEL(_index, _id) { \ | 497 | #define IPROC_ADC_CHANNEL(_index, _id) { \ |
diff --git a/drivers/iio/adc/berlin2-adc.c b/drivers/iio/adc/berlin2-adc.c index 71c806ecc722..72d8fa94ab31 100644 --- a/drivers/iio/adc/berlin2-adc.c +++ b/drivers/iio/adc/berlin2-adc.c | |||
@@ -277,7 +277,6 @@ static irqreturn_t berlin2_adc_tsen_irq(int irq, void *private) | |||
277 | } | 277 | } |
278 | 278 | ||
279 | static const struct iio_info berlin2_adc_info = { | 279 | static const struct iio_info berlin2_adc_info = { |
280 | .driver_module = THIS_MODULE, | ||
281 | .read_raw = berlin2_adc_read_raw, | 280 | .read_raw = berlin2_adc_read_raw, |
282 | }; | 281 | }; |
283 | 282 | ||
diff --git a/drivers/iio/adc/cc10001_adc.c b/drivers/iio/adc/cc10001_adc.c index 91636c0ba5b5..707d8b24b072 100644 --- a/drivers/iio/adc/cc10001_adc.c +++ b/drivers/iio/adc/cc10001_adc.c | |||
@@ -262,7 +262,6 @@ static int cc10001_update_scan_mode(struct iio_dev *indio_dev, | |||
262 | } | 262 | } |
263 | 263 | ||
264 | static const struct iio_info cc10001_adc_info = { | 264 | static const struct iio_info cc10001_adc_info = { |
265 | .driver_module = THIS_MODULE, | ||
266 | .read_raw = &cc10001_adc_read_raw, | 265 | .read_raw = &cc10001_adc_read_raw, |
267 | .update_scan_mode = &cc10001_update_scan_mode, | 266 | .update_scan_mode = &cc10001_update_scan_mode, |
268 | }; | 267 | }; |
diff --git a/drivers/iio/adc/cpcap-adc.c b/drivers/iio/adc/cpcap-adc.c index 6e419d5a7c14..3576ec73ec23 100644 --- a/drivers/iio/adc/cpcap-adc.c +++ b/drivers/iio/adc/cpcap-adc.c | |||
@@ -932,7 +932,6 @@ err_unlock: | |||
932 | 932 | ||
933 | static const struct iio_info cpcap_adc_info = { | 933 | static const struct iio_info cpcap_adc_info = { |
934 | .read_raw = &cpcap_adc_read, | 934 | .read_raw = &cpcap_adc_read, |
935 | .driver_module = THIS_MODULE, | ||
936 | }; | 935 | }; |
937 | 936 | ||
938 | /* | 937 | /* |
diff --git a/drivers/iio/adc/da9150-gpadc.c b/drivers/iio/adc/da9150-gpadc.c index 3445107e10b7..0a5d9ce79164 100644 --- a/drivers/iio/adc/da9150-gpadc.c +++ b/drivers/iio/adc/da9150-gpadc.c | |||
@@ -249,7 +249,6 @@ static int da9150_gpadc_read_raw(struct iio_dev *indio_dev, | |||
249 | 249 | ||
250 | static const struct iio_info da9150_gpadc_info = { | 250 | static const struct iio_info da9150_gpadc_info = { |
251 | .read_raw = &da9150_gpadc_read_raw, | 251 | .read_raw = &da9150_gpadc_read_raw, |
252 | .driver_module = THIS_MODULE, | ||
253 | }; | 252 | }; |
254 | 253 | ||
255 | #define DA9150_GPADC_CHANNEL(_id, _hw_id, _type, chan_info, \ | 254 | #define DA9150_GPADC_CHANNEL(_id, _hw_id, _type, chan_info, \ |
diff --git a/drivers/iio/adc/dln2-adc.c b/drivers/iio/adc/dln2-adc.c index ab8d6aed5085..c64c6675cae6 100644 --- a/drivers/iio/adc/dln2-adc.c +++ b/drivers/iio/adc/dln2-adc.c | |||
@@ -479,7 +479,6 @@ static const struct iio_info dln2_adc_info = { | |||
479 | .read_raw = dln2_adc_read_raw, | 479 | .read_raw = dln2_adc_read_raw, |
480 | .write_raw = dln2_adc_write_raw, | 480 | .write_raw = dln2_adc_write_raw, |
481 | .update_scan_mode = dln2_update_scan_mode, | 481 | .update_scan_mode = dln2_update_scan_mode, |
482 | .driver_module = THIS_MODULE, | ||
483 | }; | 482 | }; |
484 | 483 | ||
485 | static irqreturn_t dln2_adc_trigger_h(int irq, void *p) | 484 | static irqreturn_t dln2_adc_trigger_h(int irq, void *p) |
@@ -604,10 +603,6 @@ static void dln2_adc_event(struct platform_device *pdev, u16 echo, | |||
604 | iio_trigger_poll(dln2->trig); | 603 | iio_trigger_poll(dln2->trig); |
605 | } | 604 | } |
606 | 605 | ||
607 | static const struct iio_trigger_ops dln2_adc_trigger_ops = { | ||
608 | .owner = THIS_MODULE, | ||
609 | }; | ||
610 | |||
611 | static int dln2_adc_probe(struct platform_device *pdev) | 606 | static int dln2_adc_probe(struct platform_device *pdev) |
612 | { | 607 | { |
613 | struct device *dev = &pdev->dev; | 608 | struct device *dev = &pdev->dev; |
@@ -665,7 +660,6 @@ static int dln2_adc_probe(struct platform_device *pdev) | |||
665 | dev_err(dev, "failed to allocate trigger\n"); | 660 | dev_err(dev, "failed to allocate trigger\n"); |
666 | return -ENOMEM; | 661 | return -ENOMEM; |
667 | } | 662 | } |
668 | dln2->trig->ops = &dln2_adc_trigger_ops; | ||
669 | iio_trigger_set_drvdata(dln2->trig, dln2); | 663 | iio_trigger_set_drvdata(dln2->trig, dln2); |
670 | devm_iio_trigger_register(dev, dln2->trig); | 664 | devm_iio_trigger_register(dev, dln2->trig); |
671 | iio_trigger_set_immutable(indio_dev, dln2->trig); | 665 | iio_trigger_set_immutable(indio_dev, dln2->trig); |
diff --git a/drivers/iio/adc/envelope-detector.c b/drivers/iio/adc/envelope-detector.c index fef15c0d7c9c..4ebda8ab54fe 100644 --- a/drivers/iio/adc/envelope-detector.c +++ b/drivers/iio/adc/envelope-detector.c | |||
@@ -322,7 +322,6 @@ static const struct iio_chan_spec envelope_detector_iio_channel = { | |||
322 | 322 | ||
323 | static const struct iio_info envelope_detector_info = { | 323 | static const struct iio_info envelope_detector_info = { |
324 | .read_raw = &envelope_detector_read_raw, | 324 | .read_raw = &envelope_detector_read_raw, |
325 | .driver_module = THIS_MODULE, | ||
326 | }; | 325 | }; |
327 | 326 | ||
328 | static int envelope_detector_probe(struct platform_device *pdev) | 327 | static int envelope_detector_probe(struct platform_device *pdev) |
diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c index 6c5a7be9f8c1..f10443f92e4c 100644 --- a/drivers/iio/adc/exynos_adc.c +++ b/drivers/iio/adc/exynos_adc.c | |||
@@ -657,7 +657,6 @@ static int exynos_adc_reg_access(struct iio_dev *indio_dev, | |||
657 | static const struct iio_info exynos_adc_iio_info = { | 657 | static const struct iio_info exynos_adc_iio_info = { |
658 | .read_raw = &exynos_read_raw, | 658 | .read_raw = &exynos_read_raw, |
659 | .debugfs_reg_access = &exynos_adc_reg_access, | 659 | .debugfs_reg_access = &exynos_adc_reg_access, |
660 | .driver_module = THIS_MODULE, | ||
661 | }; | 660 | }; |
662 | 661 | ||
663 | #define ADC_CHANNEL(_index, _id) { \ | 662 | #define ADC_CHANNEL(_index, _id) { \ |
diff --git a/drivers/iio/adc/hi8435.c b/drivers/iio/adc/hi8435.c index adf7dc712937..6f6c9a348158 100644 --- a/drivers/iio/adc/hi8435.c +++ b/drivers/iio/adc/hi8435.c | |||
@@ -408,7 +408,6 @@ static const struct iio_chan_spec hi8435_channels[] = { | |||
408 | }; | 408 | }; |
409 | 409 | ||
410 | static const struct iio_info hi8435_info = { | 410 | static const struct iio_info hi8435_info = { |
411 | .driver_module = THIS_MODULE, | ||
412 | .read_raw = hi8435_read_raw, | 411 | .read_raw = hi8435_read_raw, |
413 | .read_event_config = hi8435_read_event_config, | 412 | .read_event_config = hi8435_read_event_config, |
414 | .write_event_config = hi8435_write_event_config, | 413 | .write_event_config = hi8435_write_event_config, |
diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index 27005d84ed73..d10b9f13d557 100644 --- a/drivers/iio/adc/hx711.c +++ b/drivers/iio/adc/hx711.c | |||
@@ -374,7 +374,6 @@ static const struct attribute_group hx711_attribute_group = { | |||
374 | }; | 374 | }; |
375 | 375 | ||
376 | static const struct iio_info hx711_iio_info = { | 376 | static const struct iio_info hx711_iio_info = { |
377 | .driver_module = THIS_MODULE, | ||
378 | .read_raw = hx711_read_raw, | 377 | .read_raw = hx711_read_raw, |
379 | .write_raw = hx711_write_raw, | 378 | .write_raw = hx711_write_raw, |
380 | .write_raw_get_fmt = hx711_write_raw_get_fmt, | 379 | .write_raw_get_fmt = hx711_write_raw_get_fmt, |
diff --git a/drivers/iio/adc/imx7d_adc.c b/drivers/iio/adc/imx7d_adc.c index 254b29a68b9d..cfab31162845 100644 --- a/drivers/iio/adc/imx7d_adc.c +++ b/drivers/iio/adc/imx7d_adc.c | |||
@@ -412,7 +412,6 @@ static int imx7d_adc_reg_access(struct iio_dev *indio_dev, | |||
412 | } | 412 | } |
413 | 413 | ||
414 | static const struct iio_info imx7d_adc_iio_info = { | 414 | static const struct iio_info imx7d_adc_iio_info = { |
415 | .driver_module = THIS_MODULE, | ||
416 | .read_raw = &imx7d_adc_read_raw, | 415 | .read_raw = &imx7d_adc_read_raw, |
417 | .debugfs_reg_access = &imx7d_adc_reg_access, | 416 | .debugfs_reg_access = &imx7d_adc_reg_access, |
418 | }; | 417 | }; |
diff --git a/drivers/iio/adc/ina2xx-adc.c b/drivers/iio/adc/ina2xx-adc.c index 68884d26b50c..cc5eda453a13 100644 --- a/drivers/iio/adc/ina2xx-adc.c +++ b/drivers/iio/adc/ina2xx-adc.c | |||
@@ -778,7 +778,6 @@ static const struct attribute_group ina226_attribute_group = { | |||
778 | }; | 778 | }; |
779 | 779 | ||
780 | static const struct iio_info ina219_info = { | 780 | static const struct iio_info ina219_info = { |
781 | .driver_module = THIS_MODULE, | ||
782 | .attrs = &ina219_attribute_group, | 781 | .attrs = &ina219_attribute_group, |
783 | .read_raw = ina2xx_read_raw, | 782 | .read_raw = ina2xx_read_raw, |
784 | .write_raw = ina2xx_write_raw, | 783 | .write_raw = ina2xx_write_raw, |
@@ -786,7 +785,6 @@ static const struct iio_info ina219_info = { | |||
786 | }; | 785 | }; |
787 | 786 | ||
788 | static const struct iio_info ina226_info = { | 787 | static const struct iio_info ina226_info = { |
789 | .driver_module = THIS_MODULE, | ||
790 | .attrs = &ina226_attribute_group, | 788 | .attrs = &ina226_attribute_group, |
791 | .read_raw = ina2xx_read_raw, | 789 | .read_raw = ina2xx_read_raw, |
792 | .write_raw = ina2xx_write_raw, | 790 | .write_raw = ina2xx_write_raw, |
diff --git a/drivers/iio/adc/lp8788_adc.c b/drivers/iio/adc/lp8788_adc.c index 152cfc8e1c7b..3bc4df916420 100644 --- a/drivers/iio/adc/lp8788_adc.c +++ b/drivers/iio/adc/lp8788_adc.c | |||
@@ -125,7 +125,6 @@ static int lp8788_adc_read_raw(struct iio_dev *indio_dev, | |||
125 | 125 | ||
126 | static const struct iio_info lp8788_adc_info = { | 126 | static const struct iio_info lp8788_adc_info = { |
127 | .read_raw = &lp8788_adc_read_raw, | 127 | .read_raw = &lp8788_adc_read_raw, |
128 | .driver_module = THIS_MODULE, | ||
129 | }; | 128 | }; |
130 | 129 | ||
131 | #define LP8788_CHAN(_id, _type) { \ | 130 | #define LP8788_CHAN(_id, _type) { \ |
diff --git a/drivers/iio/adc/lpc18xx_adc.c b/drivers/iio/adc/lpc18xx_adc.c index 3ef18f4b27f0..041dc4a3f66c 100644 --- a/drivers/iio/adc/lpc18xx_adc.c +++ b/drivers/iio/adc/lpc18xx_adc.c | |||
@@ -116,7 +116,6 @@ static int lpc18xx_adc_read_raw(struct iio_dev *indio_dev, | |||
116 | 116 | ||
117 | static const struct iio_info lpc18xx_adc_info = { | 117 | static const struct iio_info lpc18xx_adc_info = { |
118 | .read_raw = lpc18xx_adc_read_raw, | 118 | .read_raw = lpc18xx_adc_read_raw, |
119 | .driver_module = THIS_MODULE, | ||
120 | }; | 119 | }; |
121 | 120 | ||
122 | static int lpc18xx_adc_probe(struct platform_device *pdev) | 121 | static int lpc18xx_adc_probe(struct platform_device *pdev) |
diff --git a/drivers/iio/adc/lpc32xx_adc.c b/drivers/iio/adc/lpc32xx_adc.c index 6a5b9a9bc662..20b36690fa4f 100644 --- a/drivers/iio/adc/lpc32xx_adc.c +++ b/drivers/iio/adc/lpc32xx_adc.c | |||
@@ -104,7 +104,6 @@ static int lpc32xx_read_raw(struct iio_dev *indio_dev, | |||
104 | 104 | ||
105 | static const struct iio_info lpc32xx_adc_iio_info = { | 105 | static const struct iio_info lpc32xx_adc_iio_info = { |
106 | .read_raw = &lpc32xx_read_raw, | 106 | .read_raw = &lpc32xx_read_raw, |
107 | .driver_module = THIS_MODULE, | ||
108 | }; | 107 | }; |
109 | 108 | ||
110 | #define LPC32XX_ADC_CHANNEL(_index) { \ | 109 | #define LPC32XX_ADC_CHANNEL(_index) { \ |
diff --git a/drivers/iio/adc/ltc2471.c b/drivers/iio/adc/ltc2471.c index 29b7ed60cdb0..b88102b751cf 100644 --- a/drivers/iio/adc/ltc2471.c +++ b/drivers/iio/adc/ltc2471.c | |||
@@ -98,7 +98,6 @@ static const struct iio_chan_spec ltc2473_channel[] = { | |||
98 | 98 | ||
99 | static const struct iio_info ltc2471_info = { | 99 | static const struct iio_info ltc2471_info = { |
100 | .read_raw = ltc2471_read_raw, | 100 | .read_raw = ltc2471_read_raw, |
101 | .driver_module = THIS_MODULE, | ||
102 | }; | 101 | }; |
103 | 102 | ||
104 | static int ltc2471_i2c_probe(struct i2c_client *client, | 103 | static int ltc2471_i2c_probe(struct i2c_client *client, |
diff --git a/drivers/iio/adc/ltc2485.c b/drivers/iio/adc/ltc2485.c index eab91f12454a..b24c14037fd4 100644 --- a/drivers/iio/adc/ltc2485.c +++ b/drivers/iio/adc/ltc2485.c | |||
@@ -90,7 +90,6 @@ static const struct iio_chan_spec ltc2485_channel[] = { | |||
90 | 90 | ||
91 | static const struct iio_info ltc2485_info = { | 91 | static const struct iio_info ltc2485_info = { |
92 | .read_raw = ltc2485_read_raw, | 92 | .read_raw = ltc2485_read_raw, |
93 | .driver_module = THIS_MODULE, | ||
94 | }; | 93 | }; |
95 | 94 | ||
96 | static int ltc2485_probe(struct i2c_client *client, | 95 | static int ltc2485_probe(struct i2c_client *client, |
diff --git a/drivers/iio/adc/ltc2497.c b/drivers/iio/adc/ltc2497.c index 5bf8011dcde9..f1f7cdf66fbd 100644 --- a/drivers/iio/adc/ltc2497.c +++ b/drivers/iio/adc/ltc2497.c | |||
@@ -186,7 +186,6 @@ static const struct iio_chan_spec ltc2497_channel[] = { | |||
186 | 186 | ||
187 | static const struct iio_info ltc2497_info = { | 187 | static const struct iio_info ltc2497_info = { |
188 | .read_raw = ltc2497_read_raw, | 188 | .read_raw = ltc2497_read_raw, |
189 | .driver_module = THIS_MODULE, | ||
190 | }; | 189 | }; |
191 | 190 | ||
192 | static int ltc2497_probe(struct i2c_client *client, | 191 | static int ltc2497_probe(struct i2c_client *client, |
diff --git a/drivers/iio/adc/max1027.c b/drivers/iio/adc/max1027.c index ebc715927e63..375da6491499 100644 --- a/drivers/iio/adc/max1027.c +++ b/drivers/iio/adc/max1027.c | |||
@@ -381,13 +381,11 @@ static irqreturn_t max1027_trigger_handler(int irq, void *private) | |||
381 | } | 381 | } |
382 | 382 | ||
383 | static const struct iio_trigger_ops max1027_trigger_ops = { | 383 | static const struct iio_trigger_ops max1027_trigger_ops = { |
384 | .owner = THIS_MODULE, | ||
385 | .validate_device = &iio_trigger_validate_own_device, | 384 | .validate_device = &iio_trigger_validate_own_device, |
386 | .set_trigger_state = &max1027_set_trigger_state, | 385 | .set_trigger_state = &max1027_set_trigger_state, |
387 | }; | 386 | }; |
388 | 387 | ||
389 | static const struct iio_info max1027_info = { | 388 | static const struct iio_info max1027_info = { |
390 | .driver_module = THIS_MODULE, | ||
391 | .read_raw = &max1027_read_raw, | 389 | .read_raw = &max1027_read_raw, |
392 | .validate_trigger = &max1027_validate_trigger, | 390 | .validate_trigger = &max1027_validate_trigger, |
393 | .debugfs_reg_access = &max1027_debugfs_reg_access, | 391 | .debugfs_reg_access = &max1027_debugfs_reg_access, |
diff --git a/drivers/iio/adc/max11100.c b/drivers/iio/adc/max11100.c index 1180bcc22ff1..af59ab2e650c 100644 --- a/drivers/iio/adc/max11100.c +++ b/drivers/iio/adc/max11100.c | |||
@@ -100,7 +100,6 @@ static int max11100_read_raw(struct iio_dev *indio_dev, | |||
100 | } | 100 | } |
101 | 101 | ||
102 | static const struct iio_info max11100_info = { | 102 | static const struct iio_info max11100_info = { |
103 | .driver_module = THIS_MODULE, | ||
104 | .read_raw = max11100_read_raw, | 103 | .read_raw = max11100_read_raw, |
105 | }; | 104 | }; |
106 | 105 | ||
diff --git a/drivers/iio/adc/max1118.c b/drivers/iio/adc/max1118.c index 2e9648a078c4..49db9e9ae625 100644 --- a/drivers/iio/adc/max1118.c +++ b/drivers/iio/adc/max1118.c | |||
@@ -155,7 +155,6 @@ static int max1118_read_raw(struct iio_dev *indio_dev, | |||
155 | 155 | ||
156 | static const struct iio_info max1118_info = { | 156 | static const struct iio_info max1118_info = { |
157 | .read_raw = max1118_read_raw, | 157 | .read_raw = max1118_read_raw, |
158 | .driver_module = THIS_MODULE, | ||
159 | }; | 158 | }; |
160 | 159 | ||
161 | static irqreturn_t max1118_trigger_handler(int irq, void *p) | 160 | static irqreturn_t max1118_trigger_handler(int irq, void *p) |
diff --git a/drivers/iio/adc/max1363.c b/drivers/iio/adc/max1363.c index 80eada4886b3..7f1848dac9bf 100644 --- a/drivers/iio/adc/max1363.c +++ b/drivers/iio/adc/max1363.c | |||
@@ -1029,7 +1029,6 @@ static int max1363_update_scan_mode(struct iio_dev *indio_dev, | |||
1029 | 1029 | ||
1030 | static const struct iio_info max1238_info = { | 1030 | static const struct iio_info max1238_info = { |
1031 | .read_raw = &max1363_read_raw, | 1031 | .read_raw = &max1363_read_raw, |
1032 | .driver_module = THIS_MODULE, | ||
1033 | .update_scan_mode = &max1363_update_scan_mode, | 1032 | .update_scan_mode = &max1363_update_scan_mode, |
1034 | }; | 1033 | }; |
1035 | 1034 | ||
@@ -1040,7 +1039,6 @@ static const struct iio_info max1363_info = { | |||
1040 | .write_event_config = &max1363_write_event_config, | 1039 | .write_event_config = &max1363_write_event_config, |
1041 | .read_raw = &max1363_read_raw, | 1040 | .read_raw = &max1363_read_raw, |
1042 | .update_scan_mode = &max1363_update_scan_mode, | 1041 | .update_scan_mode = &max1363_update_scan_mode, |
1043 | .driver_module = THIS_MODULE, | ||
1044 | .event_attrs = &max1363_event_attribute_group, | 1042 | .event_attrs = &max1363_event_attribute_group, |
1045 | }; | 1043 | }; |
1046 | 1044 | ||
diff --git a/drivers/iio/adc/max9611.c b/drivers/iio/adc/max9611.c index b1dd17cbce58..9edfbabf4e4d 100644 --- a/drivers/iio/adc/max9611.c +++ b/drivers/iio/adc/max9611.c | |||
@@ -460,7 +460,6 @@ static const struct attribute_group max9611_attribute_group = { | |||
460 | }; | 460 | }; |
461 | 461 | ||
462 | static const struct iio_info indio_info = { | 462 | static const struct iio_info indio_info = { |
463 | .driver_module = THIS_MODULE, | ||
464 | .read_raw = max9611_read_raw, | 463 | .read_raw = max9611_read_raw, |
465 | .attrs = &max9611_attribute_group, | 464 | .attrs = &max9611_attribute_group, |
466 | }; | 465 | }; |
diff --git a/drivers/iio/adc/mcp320x.c b/drivers/iio/adc/mcp320x.c index 634717ae12f3..06bc2453caf9 100644 --- a/drivers/iio/adc/mcp320x.c +++ b/drivers/iio/adc/mcp320x.c | |||
@@ -242,7 +242,6 @@ static const struct iio_chan_spec mcp3208_channels[] = { | |||
242 | 242 | ||
243 | static const struct iio_info mcp320x_info = { | 243 | static const struct iio_info mcp320x_info = { |
244 | .read_raw = mcp320x_read_raw, | 244 | .read_raw = mcp320x_read_raw, |
245 | .driver_module = THIS_MODULE, | ||
246 | }; | 245 | }; |
247 | 246 | ||
248 | static const struct mcp320x_chip_info mcp320x_chip_infos[] = { | 247 | static const struct mcp320x_chip_info mcp320x_chip_infos[] = { |
diff --git a/drivers/iio/adc/mcp3422.c b/drivers/iio/adc/mcp3422.c index 63de705086ed..819f26011500 100644 --- a/drivers/iio/adc/mcp3422.c +++ b/drivers/iio/adc/mcp3422.c | |||
@@ -327,7 +327,6 @@ static const struct iio_info mcp3422_info = { | |||
327 | .write_raw = mcp3422_write_raw, | 327 | .write_raw = mcp3422_write_raw, |
328 | .write_raw_get_fmt = mcp3422_write_raw_get_fmt, | 328 | .write_raw_get_fmt = mcp3422_write_raw_get_fmt, |
329 | .attrs = &mcp3422_attribute_group, | 329 | .attrs = &mcp3422_attribute_group, |
330 | .driver_module = THIS_MODULE, | ||
331 | }; | 330 | }; |
332 | 331 | ||
333 | static int mcp3422_probe(struct i2c_client *client, | 332 | static int mcp3422_probe(struct i2c_client *client, |
diff --git a/drivers/iio/adc/men_z188_adc.c b/drivers/iio/adc/men_z188_adc.c index 8f3606de4eaf..c80261748d8f 100644 --- a/drivers/iio/adc/men_z188_adc.c +++ b/drivers/iio/adc/men_z188_adc.c | |||
@@ -80,7 +80,6 @@ static int z188_iio_read_raw(struct iio_dev *iio_dev, | |||
80 | 80 | ||
81 | static const struct iio_info z188_adc_info = { | 81 | static const struct iio_info z188_adc_info = { |
82 | .read_raw = &z188_iio_read_raw, | 82 | .read_raw = &z188_iio_read_raw, |
83 | .driver_module = THIS_MODULE, | ||
84 | }; | 83 | }; |
85 | 84 | ||
86 | static void men_z188_config_channels(void __iomem *addr) | 85 | static void men_z188_config_channels(void __iomem *addr) |
diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c index 2e8dbb89c8c9..9c6932ffc0af 100644 --- a/drivers/iio/adc/meson_saradc.c +++ b/drivers/iio/adc/meson_saradc.c | |||
@@ -840,7 +840,6 @@ out: | |||
840 | 840 | ||
841 | static const struct iio_info meson_sar_adc_iio_info = { | 841 | static const struct iio_info meson_sar_adc_iio_info = { |
842 | .read_raw = meson_sar_adc_iio_info_read_raw, | 842 | .read_raw = meson_sar_adc_iio_info_read_raw, |
843 | .driver_module = THIS_MODULE, | ||
844 | }; | 843 | }; |
845 | 844 | ||
846 | static const struct meson_sar_adc_data meson_sar_adc_meson8_data = { | 845 | static const struct meson_sar_adc_data meson_sar_adc_meson8_data = { |
diff --git a/drivers/iio/adc/mt6577_auxadc.c b/drivers/iio/adc/mt6577_auxadc.c index 414cf44bf19d..a2a23958c2a2 100644 --- a/drivers/iio/adc/mt6577_auxadc.c +++ b/drivers/iio/adc/mt6577_auxadc.c | |||
@@ -180,7 +180,6 @@ static int mt6577_auxadc_read_raw(struct iio_dev *indio_dev, | |||
180 | } | 180 | } |
181 | 181 | ||
182 | static const struct iio_info mt6577_auxadc_info = { | 182 | static const struct iio_info mt6577_auxadc_info = { |
183 | .driver_module = THIS_MODULE, | ||
184 | .read_raw = &mt6577_auxadc_read_raw, | 183 | .read_raw = &mt6577_auxadc_read_raw, |
185 | }; | 184 | }; |
186 | 185 | ||
diff --git a/drivers/iio/adc/mxs-lradc-adc.c b/drivers/iio/adc/mxs-lradc-adc.c index d32b34638c2f..c627513d9f0f 100644 --- a/drivers/iio/adc/mxs-lradc-adc.c +++ b/drivers/iio/adc/mxs-lradc-adc.c | |||
@@ -382,7 +382,6 @@ static const struct attribute_group mxs_lradc_adc_attribute_group = { | |||
382 | }; | 382 | }; |
383 | 383 | ||
384 | static const struct iio_info mxs_lradc_adc_iio_info = { | 384 | static const struct iio_info mxs_lradc_adc_iio_info = { |
385 | .driver_module = THIS_MODULE, | ||
386 | .read_raw = mxs_lradc_adc_read_raw, | 385 | .read_raw = mxs_lradc_adc_read_raw, |
387 | .write_raw = mxs_lradc_adc_write_raw, | 386 | .write_raw = mxs_lradc_adc_write_raw, |
388 | .write_raw_get_fmt = mxs_lradc_adc_write_raw_get_fmt, | 387 | .write_raw_get_fmt = mxs_lradc_adc_write_raw_get_fmt, |
@@ -455,7 +454,6 @@ static int mxs_lradc_adc_configure_trigger(struct iio_trigger *trig, bool state) | |||
455 | } | 454 | } |
456 | 455 | ||
457 | static const struct iio_trigger_ops mxs_lradc_adc_trigger_ops = { | 456 | static const struct iio_trigger_ops mxs_lradc_adc_trigger_ops = { |
458 | .owner = THIS_MODULE, | ||
459 | .set_trigger_state = &mxs_lradc_adc_configure_trigger, | 457 | .set_trigger_state = &mxs_lradc_adc_configure_trigger, |
460 | }; | 458 | }; |
461 | 459 | ||
diff --git a/drivers/iio/adc/nau7802.c b/drivers/iio/adc/nau7802.c index 08f446695f97..8997e74a8847 100644 --- a/drivers/iio/adc/nau7802.c +++ b/drivers/iio/adc/nau7802.c | |||
@@ -402,7 +402,6 @@ static int nau7802_write_raw_get_fmt(struct iio_dev *indio_dev, | |||
402 | } | 402 | } |
403 | 403 | ||
404 | static const struct iio_info nau7802_info = { | 404 | static const struct iio_info nau7802_info = { |
405 | .driver_module = THIS_MODULE, | ||
406 | .read_raw = &nau7802_read_raw, | 405 | .read_raw = &nau7802_read_raw, |
407 | .write_raw = &nau7802_write_raw, | 406 | .write_raw = &nau7802_write_raw, |
408 | .write_raw_get_fmt = nau7802_write_raw_get_fmt, | 407 | .write_raw_get_fmt = nau7802_write_raw_get_fmt, |
diff --git a/drivers/iio/adc/palmas_gpadc.c b/drivers/iio/adc/palmas_gpadc.c index 7d61b566e148..69b9affeef1e 100644 --- a/drivers/iio/adc/palmas_gpadc.c +++ b/drivers/iio/adc/palmas_gpadc.c | |||
@@ -430,7 +430,6 @@ out: | |||
430 | 430 | ||
431 | static const struct iio_info palmas_gpadc_iio_info = { | 431 | static const struct iio_info palmas_gpadc_iio_info = { |
432 | .read_raw = palmas_gpadc_read_raw, | 432 | .read_raw = palmas_gpadc_read_raw, |
433 | .driver_module = THIS_MODULE, | ||
434 | }; | 433 | }; |
435 | 434 | ||
436 | #define PALMAS_ADC_CHAN_IIO(chan, _type, chan_info) \ | 435 | #define PALMAS_ADC_CHAN_IIO(chan, _type, chan_info) \ |
diff --git a/drivers/iio/adc/qcom-pm8xxx-xoadc.c b/drivers/iio/adc/qcom-pm8xxx-xoadc.c index cea8f1fb444a..b093ecddf1a8 100644 --- a/drivers/iio/adc/qcom-pm8xxx-xoadc.c +++ b/drivers/iio/adc/qcom-pm8xxx-xoadc.c | |||
@@ -728,7 +728,6 @@ static int pm8xxx_of_xlate(struct iio_dev *indio_dev, | |||
728 | } | 728 | } |
729 | 729 | ||
730 | static const struct iio_info pm8xxx_xoadc_info = { | 730 | static const struct iio_info pm8xxx_xoadc_info = { |
731 | .driver_module = THIS_MODULE, | ||
732 | .of_xlate = pm8xxx_of_xlate, | 731 | .of_xlate = pm8xxx_of_xlate, |
733 | .read_raw = pm8xxx_read_raw, | 732 | .read_raw = pm8xxx_read_raw, |
734 | }; | 733 | }; |
diff --git a/drivers/iio/adc/qcom-spmi-iadc.c b/drivers/iio/adc/qcom-spmi-iadc.c index fabd24edc2a1..3f062cd61aba 100644 --- a/drivers/iio/adc/qcom-spmi-iadc.c +++ b/drivers/iio/adc/qcom-spmi-iadc.c | |||
@@ -356,7 +356,6 @@ static int iadc_read_raw(struct iio_dev *indio_dev, | |||
356 | 356 | ||
357 | static const struct iio_info iadc_info = { | 357 | static const struct iio_info iadc_info = { |
358 | .read_raw = iadc_read_raw, | 358 | .read_raw = iadc_read_raw, |
359 | .driver_module = THIS_MODULE, | ||
360 | }; | 359 | }; |
361 | 360 | ||
362 | static irqreturn_t iadc_isr(int irq, void *dev_id) | 361 | static irqreturn_t iadc_isr(int irq, void *dev_id) |
diff --git a/drivers/iio/adc/qcom-spmi-vadc.c b/drivers/iio/adc/qcom-spmi-vadc.c index 9e600bfd1765..3680e0d47412 100644 --- a/drivers/iio/adc/qcom-spmi-vadc.c +++ b/drivers/iio/adc/qcom-spmi-vadc.c | |||
@@ -506,7 +506,6 @@ static int vadc_of_xlate(struct iio_dev *indio_dev, | |||
506 | static const struct iio_info vadc_info = { | 506 | static const struct iio_info vadc_info = { |
507 | .read_raw = vadc_read_raw, | 507 | .read_raw = vadc_read_raw, |
508 | .of_xlate = vadc_of_xlate, | 508 | .of_xlate = vadc_of_xlate, |
509 | .driver_module = THIS_MODULE, | ||
510 | }; | 509 | }; |
511 | 510 | ||
512 | struct vadc_channels { | 511 | struct vadc_channels { |
diff --git a/drivers/iio/adc/rcar-gyroadc.c b/drivers/iio/adc/rcar-gyroadc.c index 27a318164619..2cb5397ceeea 100644 --- a/drivers/iio/adc/rcar-gyroadc.c +++ b/drivers/iio/adc/rcar-gyroadc.c | |||
@@ -277,7 +277,6 @@ static int rcar_gyroadc_reg_access(struct iio_dev *indio_dev, | |||
277 | } | 277 | } |
278 | 278 | ||
279 | static const struct iio_info rcar_gyroadc_iio_info = { | 279 | static const struct iio_info rcar_gyroadc_iio_info = { |
280 | .driver_module = THIS_MODULE, | ||
281 | .read_raw = rcar_gyroadc_read_raw, | 280 | .read_raw = rcar_gyroadc_read_raw, |
282 | .debugfs_reg_access = rcar_gyroadc_reg_access, | 281 | .debugfs_reg_access = rcar_gyroadc_reg_access, |
283 | }; | 282 | }; |
diff --git a/drivers/iio/adc/rockchip_saradc.c b/drivers/iio/adc/rockchip_saradc.c index 5f612d694b33..1f98566d5b3c 100644 --- a/drivers/iio/adc/rockchip_saradc.c +++ b/drivers/iio/adc/rockchip_saradc.c | |||
@@ -125,7 +125,6 @@ static irqreturn_t rockchip_saradc_isr(int irq, void *dev_id) | |||
125 | 125 | ||
126 | static const struct iio_info rockchip_saradc_iio_info = { | 126 | static const struct iio_info rockchip_saradc_iio_info = { |
127 | .read_raw = rockchip_saradc_read_raw, | 127 | .read_raw = rockchip_saradc_read_raw, |
128 | .driver_module = THIS_MODULE, | ||
129 | }; | 128 | }; |
130 | 129 | ||
131 | #define ADC_CHANNEL(_index, _id) { \ | 130 | #define ADC_CHANNEL(_index, _id) { \ |
diff --git a/drivers/iio/adc/spear_adc.c b/drivers/iio/adc/spear_adc.c index 5dd61f6a57b9..b1da2c46107c 100644 --- a/drivers/iio/adc/spear_adc.c +++ b/drivers/iio/adc/spear_adc.c | |||
@@ -254,7 +254,6 @@ static int spear_adc_configure(struct spear_adc_state *st) | |||
254 | static const struct iio_info spear_adc_info = { | 254 | static const struct iio_info spear_adc_info = { |
255 | .read_raw = &spear_adc_read_raw, | 255 | .read_raw = &spear_adc_read_raw, |
256 | .write_raw = &spear_adc_write_raw, | 256 | .write_raw = &spear_adc_write_raw, |
257 | .driver_module = THIS_MODULE, | ||
258 | }; | 257 | }; |
259 | 258 | ||
260 | static int spear_adc_probe(struct platform_device *pdev) | 259 | static int spear_adc_probe(struct platform_device *pdev) |
diff --git a/drivers/iio/adc/stm32-adc.c b/drivers/iio/adc/stm32-adc.c index 6bc602891f2f..f757bece2064 100644 --- a/drivers/iio/adc/stm32-adc.c +++ b/drivers/iio/adc/stm32-adc.c | |||
@@ -1375,7 +1375,6 @@ static const struct iio_info stm32_adc_iio_info = { | |||
1375 | .update_scan_mode = stm32_adc_update_scan_mode, | 1375 | .update_scan_mode = stm32_adc_update_scan_mode, |
1376 | .debugfs_reg_access = stm32_adc_debugfs_reg_access, | 1376 | .debugfs_reg_access = stm32_adc_debugfs_reg_access, |
1377 | .of_xlate = stm32_adc_of_xlate, | 1377 | .of_xlate = stm32_adc_of_xlate, |
1378 | .driver_module = THIS_MODULE, | ||
1379 | }; | 1378 | }; |
1380 | 1379 | ||
1381 | static unsigned int stm32_adc_dma_residue(struct stm32_adc *adc) | 1380 | static unsigned int stm32_adc_dma_residue(struct stm32_adc *adc) |
diff --git a/drivers/iio/adc/stx104.c b/drivers/iio/adc/stx104.c index 2da741d27540..17b021f33180 100644 --- a/drivers/iio/adc/stx104.c +++ b/drivers/iio/adc/stx104.c | |||
@@ -172,7 +172,6 @@ static int stx104_write_raw(struct iio_dev *indio_dev, | |||
172 | } | 172 | } |
173 | 173 | ||
174 | static const struct iio_info stx104_info = { | 174 | static const struct iio_info stx104_info = { |
175 | .driver_module = THIS_MODULE, | ||
176 | .read_raw = stx104_read_raw, | 175 | .read_raw = stx104_read_raw, |
177 | .write_raw = stx104_write_raw | 176 | .write_raw = stx104_write_raw |
178 | }; | 177 | }; |
diff --git a/drivers/iio/adc/sun4i-gpadc-iio.c b/drivers/iio/adc/sun4i-gpadc-iio.c index 137f577d9432..a146160d9966 100644 --- a/drivers/iio/adc/sun4i-gpadc-iio.c +++ b/drivers/iio/adc/sun4i-gpadc-iio.c | |||
@@ -352,7 +352,6 @@ static int sun4i_gpadc_read_raw(struct iio_dev *indio_dev, | |||
352 | 352 | ||
353 | static const struct iio_info sun4i_gpadc_iio_info = { | 353 | static const struct iio_info sun4i_gpadc_iio_info = { |
354 | .read_raw = sun4i_gpadc_read_raw, | 354 | .read_raw = sun4i_gpadc_read_raw, |
355 | .driver_module = THIS_MODULE, | ||
356 | }; | 355 | }; |
357 | 356 | ||
358 | static irqreturn_t sun4i_gpadc_temp_data_irq_handler(int irq, void *dev_id) | 357 | static irqreturn_t sun4i_gpadc_temp_data_irq_handler(int irq, void *dev_id) |
diff --git a/drivers/iio/adc/ti-adc081c.c b/drivers/iio/adc/ti-adc081c.c index 319172cf7da8..405e3779c0c5 100644 --- a/drivers/iio/adc/ti-adc081c.c +++ b/drivers/iio/adc/ti-adc081c.c | |||
@@ -124,7 +124,6 @@ static struct adcxx1c_model adcxx1c_models[] = { | |||
124 | 124 | ||
125 | static const struct iio_info adc081c_info = { | 125 | static const struct iio_info adc081c_info = { |
126 | .read_raw = adc081c_read_raw, | 126 | .read_raw = adc081c_read_raw, |
127 | .driver_module = THIS_MODULE, | ||
128 | }; | 127 | }; |
129 | 128 | ||
130 | static irqreturn_t adc081c_trigger_handler(int irq, void *p) | 129 | static irqreturn_t adc081c_trigger_handler(int irq, void *p) |
diff --git a/drivers/iio/adc/ti-adc0832.c b/drivers/iio/adc/ti-adc0832.c index e952e94a14af..188dae705bf7 100644 --- a/drivers/iio/adc/ti-adc0832.c +++ b/drivers/iio/adc/ti-adc0832.c | |||
@@ -195,7 +195,6 @@ static int adc0832_read_raw(struct iio_dev *iio, | |||
195 | 195 | ||
196 | static const struct iio_info adc0832_info = { | 196 | static const struct iio_info adc0832_info = { |
197 | .read_raw = adc0832_read_raw, | 197 | .read_raw = adc0832_read_raw, |
198 | .driver_module = THIS_MODULE, | ||
199 | }; | 198 | }; |
200 | 199 | ||
201 | static irqreturn_t adc0832_trigger_handler(int irq, void *p) | 200 | static irqreturn_t adc0832_trigger_handler(int irq, void *p) |
diff --git a/drivers/iio/adc/ti-adc084s021.c b/drivers/iio/adc/ti-adc084s021.c index a355121c11a4..25504640e126 100644 --- a/drivers/iio/adc/ti-adc084s021.c +++ b/drivers/iio/adc/ti-adc084s021.c | |||
@@ -186,7 +186,6 @@ static int adc084s021_buffer_postdisable(struct iio_dev *indio_dev) | |||
186 | 186 | ||
187 | static const struct iio_info adc084s021_info = { | 187 | static const struct iio_info adc084s021_info = { |
188 | .read_raw = adc084s021_read_raw, | 188 | .read_raw = adc084s021_read_raw, |
189 | .driver_module = THIS_MODULE, | ||
190 | }; | 189 | }; |
191 | 190 | ||
192 | static const struct iio_buffer_setup_ops adc084s021_buffer_setup_ops = { | 191 | static const struct iio_buffer_setup_ops adc084s021_buffer_setup_ops = { |
diff --git a/drivers/iio/adc/ti-adc108s102.c b/drivers/iio/adc/ti-adc108s102.c index de4e5ac98c6e..841203edaac5 100644 --- a/drivers/iio/adc/ti-adc108s102.c +++ b/drivers/iio/adc/ti-adc108s102.c | |||
@@ -220,7 +220,6 @@ static int adc108s102_read_raw(struct iio_dev *indio_dev, | |||
220 | static const struct iio_info adc108s102_info = { | 220 | static const struct iio_info adc108s102_info = { |
221 | .read_raw = &adc108s102_read_raw, | 221 | .read_raw = &adc108s102_read_raw, |
222 | .update_scan_mode = &adc108s102_update_scan_mode, | 222 | .update_scan_mode = &adc108s102_update_scan_mode, |
223 | .driver_module = THIS_MODULE, | ||
224 | }; | 223 | }; |
225 | 224 | ||
226 | static int adc108s102_probe(struct spi_device *spi) | 225 | static int adc108s102_probe(struct spi_device *spi) |
diff --git a/drivers/iio/adc/ti-adc12138.c b/drivers/iio/adc/ti-adc12138.c index 072f03bfe6a0..bf890244789a 100644 --- a/drivers/iio/adc/ti-adc12138.c +++ b/drivers/iio/adc/ti-adc12138.c | |||
@@ -277,7 +277,6 @@ static int adc12138_read_raw(struct iio_dev *iio, | |||
277 | 277 | ||
278 | static const struct iio_info adc12138_info = { | 278 | static const struct iio_info adc12138_info = { |
279 | .read_raw = adc12138_read_raw, | 279 | .read_raw = adc12138_read_raw, |
280 | .driver_module = THIS_MODULE, | ||
281 | }; | 280 | }; |
282 | 281 | ||
283 | static int adc12138_init(struct adc12138 *adc) | 282 | static int adc12138_init(struct adc12138 *adc) |
diff --git a/drivers/iio/adc/ti-adc128s052.c b/drivers/iio/adc/ti-adc128s052.c index 89dfbd31be5c..7cf39b3e2416 100644 --- a/drivers/iio/adc/ti-adc128s052.c +++ b/drivers/iio/adc/ti-adc128s052.c | |||
@@ -130,7 +130,6 @@ static const struct adc128_configuration adc128_config[] = { | |||
130 | 130 | ||
131 | static const struct iio_info adc128_info = { | 131 | static const struct iio_info adc128_info = { |
132 | .read_raw = adc128_read_raw, | 132 | .read_raw = adc128_read_raw, |
133 | .driver_module = THIS_MODULE, | ||
134 | }; | 133 | }; |
135 | 134 | ||
136 | static int adc128_probe(struct spi_device *spi) | 135 | static int adc128_probe(struct spi_device *spi) |
diff --git a/drivers/iio/adc/ti-adc161s626.c b/drivers/iio/adc/ti-adc161s626.c index 4836a0d7aef5..10fa7677ac4b 100644 --- a/drivers/iio/adc/ti-adc161s626.c +++ b/drivers/iio/adc/ti-adc161s626.c | |||
@@ -173,7 +173,6 @@ static int ti_adc_read_raw(struct iio_dev *indio_dev, | |||
173 | } | 173 | } |
174 | 174 | ||
175 | static const struct iio_info ti_adc_info = { | 175 | static const struct iio_info ti_adc_info = { |
176 | .driver_module = THIS_MODULE, | ||
177 | .read_raw = ti_adc_read_raw, | 176 | .read_raw = ti_adc_read_raw, |
178 | }; | 177 | }; |
179 | 178 | ||
diff --git a/drivers/iio/adc/ti-ads1015.c b/drivers/iio/adc/ti-ads1015.c index d1210024f6bc..731ec38276ea 100644 --- a/drivers/iio/adc/ti-ads1015.c +++ b/drivers/iio/adc/ti-ads1015.c | |||
@@ -821,7 +821,6 @@ static const struct attribute_group ads1115_attribute_group = { | |||
821 | }; | 821 | }; |
822 | 822 | ||
823 | static const struct iio_info ads1015_info = { | 823 | static const struct iio_info ads1015_info = { |
824 | .driver_module = THIS_MODULE, | ||
825 | .read_raw = ads1015_read_raw, | 824 | .read_raw = ads1015_read_raw, |
826 | .write_raw = ads1015_write_raw, | 825 | .write_raw = ads1015_write_raw, |
827 | .read_event_value = ads1015_read_event, | 826 | .read_event_value = ads1015_read_event, |
@@ -832,7 +831,6 @@ static const struct iio_info ads1015_info = { | |||
832 | }; | 831 | }; |
833 | 832 | ||
834 | static const struct iio_info ads1115_info = { | 833 | static const struct iio_info ads1115_info = { |
835 | .driver_module = THIS_MODULE, | ||
836 | .read_raw = ads1015_read_raw, | 834 | .read_raw = ads1015_read_raw, |
837 | .write_raw = ads1015_write_raw, | 835 | .write_raw = ads1015_write_raw, |
838 | .read_event_value = ads1015_read_event, | 836 | .read_event_value = ads1015_read_event, |
diff --git a/drivers/iio/adc/ti-ads7950.c b/drivers/iio/adc/ti-ads7950.c index a376190914ad..0225c1b333ab 100644 --- a/drivers/iio/adc/ti-ads7950.c +++ b/drivers/iio/adc/ti-ads7950.c | |||
@@ -372,7 +372,6 @@ static int ti_ads7950_read_raw(struct iio_dev *indio_dev, | |||
372 | static const struct iio_info ti_ads7950_info = { | 372 | static const struct iio_info ti_ads7950_info = { |
373 | .read_raw = &ti_ads7950_read_raw, | 373 | .read_raw = &ti_ads7950_read_raw, |
374 | .update_scan_mode = ti_ads7950_update_scan_mode, | 374 | .update_scan_mode = ti_ads7950_update_scan_mode, |
375 | .driver_module = THIS_MODULE, | ||
376 | }; | 375 | }; |
377 | 376 | ||
378 | static int ti_ads7950_probe(struct spi_device *spi) | 377 | static int ti_ads7950_probe(struct spi_device *spi) |
diff --git a/drivers/iio/adc/ti-ads8688.c b/drivers/iio/adc/ti-ads8688.c index 4a163496d9e4..ff4756352ac1 100644 --- a/drivers/iio/adc/ti-ads8688.c +++ b/drivers/iio/adc/ti-ads8688.c | |||
@@ -369,7 +369,6 @@ static const struct iio_info ads8688_info = { | |||
369 | .write_raw = &ads8688_write_raw, | 369 | .write_raw = &ads8688_write_raw, |
370 | .write_raw_get_fmt = &ads8688_write_raw_get_fmt, | 370 | .write_raw_get_fmt = &ads8688_write_raw_get_fmt, |
371 | .attrs = &ads8688_attribute_group, | 371 | .attrs = &ads8688_attribute_group, |
372 | .driver_module = THIS_MODULE, | ||
373 | }; | 372 | }; |
374 | 373 | ||
375 | static const struct ads8688_chip_info ads8688_chip_info_tbl[] = { | 374 | static const struct ads8688_chip_info ads8688_chip_info_tbl[] = { |
diff --git a/drivers/iio/adc/ti-tlc4541.c b/drivers/iio/adc/ti-tlc4541.c index 78d91a069ea4..2290024c89fc 100644 --- a/drivers/iio/adc/ti-tlc4541.c +++ b/drivers/iio/adc/ti-tlc4541.c | |||
@@ -157,7 +157,6 @@ static int tlc4541_read_raw(struct iio_dev *indio_dev, | |||
157 | 157 | ||
158 | static const struct iio_info tlc4541_info = { | 158 | static const struct iio_info tlc4541_info = { |
159 | .read_raw = &tlc4541_read_raw, | 159 | .read_raw = &tlc4541_read_raw, |
160 | .driver_module = THIS_MODULE, | ||
161 | }; | 160 | }; |
162 | 161 | ||
163 | static int tlc4541_probe(struct spi_device *spi) | 162 | static int tlc4541_probe(struct spi_device *spi) |
diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c index 6cbed7eb118a..b3e573cc6f5f 100644 --- a/drivers/iio/adc/ti_am335x_adc.c +++ b/drivers/iio/adc/ti_am335x_adc.c | |||
@@ -533,7 +533,6 @@ err_unlock: | |||
533 | 533 | ||
534 | static const struct iio_info tiadc_info = { | 534 | static const struct iio_info tiadc_info = { |
535 | .read_raw = &tiadc_read_raw, | 535 | .read_raw = &tiadc_read_raw, |
536 | .driver_module = THIS_MODULE, | ||
537 | }; | 536 | }; |
538 | 537 | ||
539 | static int tiadc_request_dma(struct platform_device *pdev, | 538 | static int tiadc_request_dma(struct platform_device *pdev, |
diff --git a/drivers/iio/adc/twl4030-madc.c b/drivers/iio/adc/twl4030-madc.c index bd3d37fc2144..cf2089e01636 100644 --- a/drivers/iio/adc/twl4030-madc.c +++ b/drivers/iio/adc/twl4030-madc.c | |||
@@ -212,7 +212,6 @@ static int twl4030_madc_read(struct iio_dev *iio_dev, | |||
212 | 212 | ||
213 | static const struct iio_info twl4030_madc_iio_info = { | 213 | static const struct iio_info twl4030_madc_iio_info = { |
214 | .read_raw = &twl4030_madc_read, | 214 | .read_raw = &twl4030_madc_read, |
215 | .driver_module = THIS_MODULE, | ||
216 | }; | 215 | }; |
217 | 216 | ||
218 | #define TWL4030_ADC_CHANNEL(_channel, _type, _name) { \ | 217 | #define TWL4030_ADC_CHANNEL(_channel, _type, _name) { \ |
diff --git a/drivers/iio/adc/twl6030-gpadc.c b/drivers/iio/adc/twl6030-gpadc.c index becbb0aef232..3c5a73ccb1cc 100644 --- a/drivers/iio/adc/twl6030-gpadc.c +++ b/drivers/iio/adc/twl6030-gpadc.c | |||
@@ -843,7 +843,6 @@ static const struct iio_chan_spec twl6032_gpadc_iio_channels[] = { | |||
843 | 843 | ||
844 | static const struct iio_info twl6030_gpadc_iio_info = { | 844 | static const struct iio_info twl6030_gpadc_iio_info = { |
845 | .read_raw = &twl6030_gpadc_read_raw, | 845 | .read_raw = &twl6030_gpadc_read_raw, |
846 | .driver_module = THIS_MODULE, | ||
847 | }; | 846 | }; |
848 | 847 | ||
849 | static const struct twl6030_gpadc_platform_data twl6030_pdata = { | 848 | static const struct twl6030_gpadc_platform_data twl6030_pdata = { |
diff --git a/drivers/iio/adc/vf610_adc.c b/drivers/iio/adc/vf610_adc.c index c168e0db329a..bbcb7a4d7edf 100644 --- a/drivers/iio/adc/vf610_adc.c +++ b/drivers/iio/adc/vf610_adc.c | |||
@@ -799,7 +799,6 @@ static int vf610_adc_reg_access(struct iio_dev *indio_dev, | |||
799 | } | 799 | } |
800 | 800 | ||
801 | static const struct iio_info vf610_adc_iio_info = { | 801 | static const struct iio_info vf610_adc_iio_info = { |
802 | .driver_module = THIS_MODULE, | ||
803 | .read_raw = &vf610_read_raw, | 802 | .read_raw = &vf610_read_raw, |
804 | .write_raw = &vf610_write_raw, | 803 | .write_raw = &vf610_write_raw, |
805 | .debugfs_reg_access = &vf610_adc_reg_access, | 804 | .debugfs_reg_access = &vf610_adc_reg_access, |
diff --git a/drivers/iio/adc/viperboard_adc.c b/drivers/iio/adc/viperboard_adc.c index 3be2e35721cc..53eb5a4136fe 100644 --- a/drivers/iio/adc/viperboard_adc.c +++ b/drivers/iio/adc/viperboard_adc.c | |||
@@ -107,7 +107,6 @@ error: | |||
107 | 107 | ||
108 | static const struct iio_info vprbrd_adc_iio_info = { | 108 | static const struct iio_info vprbrd_adc_iio_info = { |
109 | .read_raw = &vprbrd_iio_read_raw, | 109 | .read_raw = &vprbrd_iio_read_raw, |
110 | .driver_module = THIS_MODULE, | ||
111 | }; | 110 | }; |
112 | 111 | ||
113 | static int vprbrd_adc_probe(struct platform_device *pdev) | 112 | static int vprbrd_adc_probe(struct platform_device *pdev) |
diff --git a/drivers/iio/adc/xilinx-xadc-core.c b/drivers/iio/adc/xilinx-xadc-core.c index 4a60497a1f19..d4f21d1be6c8 100644 --- a/drivers/iio/adc/xilinx-xadc-core.c +++ b/drivers/iio/adc/xilinx-xadc-core.c | |||
@@ -675,7 +675,6 @@ err_out: | |||
675 | } | 675 | } |
676 | 676 | ||
677 | static const struct iio_trigger_ops xadc_trigger_ops = { | 677 | static const struct iio_trigger_ops xadc_trigger_ops = { |
678 | .owner = THIS_MODULE, | ||
679 | .set_trigger_state = &xadc_trigger_set_state, | 678 | .set_trigger_state = &xadc_trigger_set_state, |
680 | }; | 679 | }; |
681 | 680 | ||
@@ -1028,7 +1027,6 @@ static const struct iio_info xadc_info = { | |||
1028 | .read_event_value = &xadc_read_event_value, | 1027 | .read_event_value = &xadc_read_event_value, |
1029 | .write_event_value = &xadc_write_event_value, | 1028 | .write_event_value = &xadc_write_event_value, |
1030 | .update_scan_mode = &xadc_update_scan_mode, | 1029 | .update_scan_mode = &xadc_update_scan_mode, |
1031 | .driver_module = THIS_MODULE, | ||
1032 | }; | 1030 | }; |
1033 | 1031 | ||
1034 | static const struct of_device_id xadc_of_match_table[] = { | 1032 | static const struct of_device_id xadc_of_match_table[] = { |