Commit 97623c0a authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Jonathan Cameron

iio: drop iio_info.driver_module and iio_trigger_ops.owner.

The equivalents are now assigned automatically in the relevant
registration calls and so are not needed in these operations
structures.
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarLars-Peter Clausen <lars@metafoo.de>
parent 873f3894
...@@ -369,8 +369,6 @@ struct iio_dev; ...@@ -369,8 +369,6 @@ struct iio_dev;
/** /**
* struct iio_info - constant information about device * struct iio_info - constant information about device
* @driver_module: module structure used to ensure correct
* ownership of chrdevs etc
* @event_attrs: event control attributes * @event_attrs: event control attributes
* @attrs: general purpose device attributes * @attrs: general purpose device attributes
* @read_raw: function to request a value from the device. * @read_raw: function to request a value from the device.
...@@ -425,7 +423,6 @@ struct iio_dev; ...@@ -425,7 +423,6 @@ struct iio_dev;
* were flushed and there was an error. * were flushed and there was an error.
**/ **/
struct iio_info { struct iio_info {
struct module *driver_module;
const struct attribute_group *event_attrs; const struct attribute_group *event_attrs;
const struct attribute_group *attrs; const struct attribute_group *attrs;
......
...@@ -23,7 +23,6 @@ struct iio_trigger; ...@@ -23,7 +23,6 @@ struct iio_trigger;
/** /**
* struct iio_trigger_ops - operations structure for an 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 * @set_trigger_state: switch on/off the trigger on demand
* @try_reenable: function to reenable the trigger when the * @try_reenable: function to reenable the trigger when the
* use count is zero (may be NULL) * use count is zero (may be NULL)
...@@ -34,7 +33,6 @@ struct iio_trigger; ...@@ -34,7 +33,6 @@ struct iio_trigger;
* instances of a given device. * instances of a given device.
**/ **/
struct iio_trigger_ops { struct iio_trigger_ops {
struct module *owner;
int (*set_trigger_state)(struct iio_trigger *trig, bool state); int (*set_trigger_state)(struct iio_trigger *trig, bool state);
int (*try_reenable)(struct iio_trigger *trig); int (*try_reenable)(struct iio_trigger *trig);
int (*validate_device)(struct iio_trigger *trig, int (*validate_device)(struct iio_trigger *trig,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment