]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iio:triggers: drop assign iio_info.driver_module and iio_trigger_ops.owner
authorJonathan Cameron <jic23@kernel.org>
Sun, 23 Jul 2017 16:26:08 +0000 (17:26 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Aug 2017 21:14:52 +0000 (22:14 +0100)
The equivalent of both of these are now done via macro magic when
the relevant register calls are made.  The actual structure
elements will shortly go away.

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>
drivers/iio/trigger/iio-trig-hrtimer.c
drivers/iio/trigger/iio-trig-interrupt.c
drivers/iio/trigger/iio-trig-loop.c
drivers/iio/trigger/iio-trig-sysfs.c
drivers/iio/trigger/stm32-timer-trigger.c

index a1cad6cc2e0ff1bc70ca99d8d315eccdd5acb7d3..3ee92160053feb213c5fbeab1d239f7889b502c0 100644 (file)
@@ -114,7 +114,6 @@ static int iio_trig_hrtimer_set_state(struct iio_trigger *trig, bool state)
 }
 
 static const struct iio_trigger_ops iio_hrtimer_trigger_ops = {
-       .owner = THIS_MODULE,
        .set_trigger_state = iio_trig_hrtimer_set_state,
 };
 
index e18f12b746100c0963c544598081b4cb2828e306..171c4ed03543043e0f3803b55bb5269b8e8c21c0 100644 (file)
@@ -29,7 +29,6 @@ static irqreturn_t iio_interrupt_trigger_poll(int irq, void *private)
 }
 
 static const struct iio_trigger_ops iio_interrupt_trigger_ops = {
-       .owner = THIS_MODULE,
 };
 
 static int iio_interrupt_trigger_probe(struct platform_device *pdev)
index dc6be28f96fe62ef6374404ac633c578a848b0eb..b4b02dbd6e8a18c3a4bed480818dceb17b258eee 100644 (file)
@@ -74,7 +74,6 @@ static int iio_loop_trigger_set_state(struct iio_trigger *trig, bool state)
 
 static const struct iio_trigger_ops iio_loop_trigger_ops = {
        .set_trigger_state = iio_loop_trigger_set_state,
-       .owner = THIS_MODULE,
 };
 
 static struct iio_sw_trigger *iio_trig_loop_probe(const char *name)
index 202e8b89caf2deda6c63bba11a30f32c91ed908c..3f0dc9a1a51406c5622a06cfc2b9cd01a96e0c85 100644 (file)
@@ -127,7 +127,6 @@ static const struct attribute_group *iio_sysfs_trigger_attr_groups[] = {
 };
 
 static const struct iio_trigger_ops iio_sysfs_trigger_ops = {
-       .owner = THIS_MODULE,
 };
 
 static int iio_sysfs_trigger_probe(int id)
index a9bc5b603b86fee600ff2cb30e37631a726a22ad..8cc35d18810251020244f4293bcc98df500b3ace 100644 (file)
@@ -354,7 +354,6 @@ static const struct attribute_group *stm32_trigger_attr_groups[] = {
 };
 
 static const struct iio_trigger_ops timer_trigger_ops = {
-       .owner = THIS_MODULE,
 };
 
 static int stm32_setup_iio_triggers(struct stm32_timer_trigger *priv)
@@ -478,7 +477,6 @@ static int stm32_counter_validate_trigger(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info stm32_trigger_info = {
-       .driver_module = THIS_MODULE,
        .validate_trigger = stm32_counter_validate_trigger,
        .read_raw = stm32_counter_read_raw,
        .write_raw = stm32_counter_write_raw