]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iio: drop iio_info.driver_module and iio_trigger_ops.owner.
authorJonathan Cameron <jic23@kernel.org>
Sun, 23 Jul 2017 16:26:21 +0000 (17:26 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 3 Sep 2017 17:10:24 +0000 (18:10 +0100)
The equivalents are now assigned automatically in the relevant
registration calls and so are not needed in these operations
structures.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
include/linux/iio/iio.h
include/linux/iio/trigger.h

index 97a0143009475b1cc3d7a79b5bc47e5095209450..486ffbb1a926975aa59666fd6f6fa46801f335c0 100644 (file)
@@ -369,8 +369,6 @@ struct iio_dev;
 
 /**
  * struct iio_info - constant information about device
- * @driver_module:     module structure used to ensure correct
- *                     ownership of chrdevs etc
  * @event_attrs:       event control attributes
  * @attrs:             general purpose device attributes
  * @read_raw:          function to request a value from the device.
@@ -425,7 +423,6 @@ struct iio_dev;
  *                     were flushed and there was an error.
  **/
 struct iio_info {
-       struct module                   *driver_module;
        const struct attribute_group    *event_attrs;
        const struct attribute_group    *attrs;
 
index 999793212b408d12dd4ace90ffda4459e1ed087c..1afe349af1fad06d213e107a8da252ca8c0f5c3c 100644 (file)
@@ -23,7 +23,6 @@ struct iio_trigger;
 
 /**
  * struct iio_trigger_ops - operations structure for an iio_trigger.
- * @owner:             used to monitor usage count of the trigger.
  * @set_trigger_state: switch on/off the trigger on demand
  * @try_reenable:      function to reenable the trigger when the
  *                     use count is zero (may be NULL)
@@ -34,7 +33,6 @@ struct iio_trigger;
  * instances of a given device.
  **/
 struct iio_trigger_ops {
-       struct module *owner;
        int (*set_trigger_state)(struct iio_trigger *trig, bool state);
        int (*try_reenable)(struct iio_trigger *trig);
        int (*validate_device)(struct iio_trigger *trig,