Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio:triggers: 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.

Note that stm32-timer-trigger has expanded rather beyond triggers
(to include encoder input counting for example) and hence has an
iio_info structure.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>

authored by

Jonathan Cameron and committed by
Jonathan Cameron
38ebbf68 5e42916a

-6
-1
drivers/iio/trigger/iio-trig-hrtimer.c
··· 114 114 } 115 115 116 116 static const struct iio_trigger_ops iio_hrtimer_trigger_ops = { 117 - .owner = THIS_MODULE, 118 117 .set_trigger_state = iio_trig_hrtimer_set_state, 119 118 }; 120 119
-1
drivers/iio/trigger/iio-trig-interrupt.c
··· 29 29 } 30 30 31 31 static const struct iio_trigger_ops iio_interrupt_trigger_ops = { 32 - .owner = THIS_MODULE, 33 32 }; 34 33 35 34 static int iio_interrupt_trigger_probe(struct platform_device *pdev)
-1
drivers/iio/trigger/iio-trig-loop.c
··· 74 74 75 75 static const struct iio_trigger_ops iio_loop_trigger_ops = { 76 76 .set_trigger_state = iio_loop_trigger_set_state, 77 - .owner = THIS_MODULE, 78 77 }; 79 78 80 79 static struct iio_sw_trigger *iio_trig_loop_probe(const char *name)
-1
drivers/iio/trigger/iio-trig-sysfs.c
··· 127 127 }; 128 128 129 129 static const struct iio_trigger_ops iio_sysfs_trigger_ops = { 130 - .owner = THIS_MODULE, 131 130 }; 132 131 133 132 static int iio_sysfs_trigger_probe(int id)
-2
drivers/iio/trigger/stm32-timer-trigger.c
··· 354 354 }; 355 355 356 356 static const struct iio_trigger_ops timer_trigger_ops = { 357 - .owner = THIS_MODULE, 358 357 }; 359 358 360 359 static int stm32_setup_iio_triggers(struct stm32_timer_trigger *priv) ··· 477 478 } 478 479 479 480 static const struct iio_info stm32_trigger_info = { 480 - .driver_module = THIS_MODULE, 481 481 .validate_trigger = stm32_counter_validate_trigger, 482 482 .read_raw = stm32_counter_read_raw, 483 483 .write_raw = stm32_counter_write_raw