diff options
Diffstat (limited to 'include/linux/iio/trigger.h')
-rw-r--r-- | include/linux/iio/trigger.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/linux/iio/trigger.h b/include/linux/iio/trigger.h index a9819940a84c..20239da1d0f7 100644 --- a/include/linux/iio/trigger.h +++ b/include/linux/iio/trigger.h | |||
@@ -29,7 +29,7 @@ struct iio_subirq { | |||
29 | * instances of a given device. | 29 | * instances of a given device. |
30 | **/ | 30 | **/ |
31 | struct iio_trigger_ops { | 31 | struct iio_trigger_ops { |
32 | struct module *owner; | 32 | struct module *owner; |
33 | int (*set_trigger_state)(struct iio_trigger *trig, bool state); | 33 | int (*set_trigger_state)(struct iio_trigger *trig, bool state); |
34 | int (*try_reenable)(struct iio_trigger *trig); | 34 | int (*try_reenable)(struct iio_trigger *trig); |
35 | int (*validate_device)(struct iio_trigger *trig, | 35 | int (*validate_device)(struct iio_trigger *trig, |
@@ -39,7 +39,7 @@ struct iio_trigger_ops { | |||
39 | 39 | ||
40 | /** | 40 | /** |
41 | * struct iio_trigger - industrial I/O trigger device | 41 | * struct iio_trigger - industrial I/O trigger device |
42 | * | 42 | * @ops: [DRIVER] operations structure |
43 | * @id: [INTERN] unique id number | 43 | * @id: [INTERN] unique id number |
44 | * @name: [DRIVER] unique name | 44 | * @name: [DRIVER] unique name |
45 | * @dev: [DRIVER] associated device (if relevant) | 45 | * @dev: [DRIVER] associated device (if relevant) |
@@ -76,19 +76,19 @@ struct iio_trigger { | |||
76 | static inline struct iio_trigger *to_iio_trigger(struct device *d) | 76 | static inline struct iio_trigger *to_iio_trigger(struct device *d) |
77 | { | 77 | { |
78 | return container_of(d, struct iio_trigger, dev); | 78 | return container_of(d, struct iio_trigger, dev); |
79 | }; | 79 | } |
80 | 80 | ||
81 | static inline void iio_trigger_put(struct iio_trigger *trig) | 81 | static inline void iio_trigger_put(struct iio_trigger *trig) |
82 | { | 82 | { |
83 | module_put(trig->ops->owner); | 83 | module_put(trig->ops->owner); |
84 | put_device(&trig->dev); | 84 | put_device(&trig->dev); |
85 | }; | 85 | } |
86 | 86 | ||
87 | static inline void iio_trigger_get(struct iio_trigger *trig) | 87 | static inline void iio_trigger_get(struct iio_trigger *trig) |
88 | { | 88 | { |
89 | get_device(&trig->dev); | 89 | get_device(&trig->dev); |
90 | __module_get(trig->ops->owner); | 90 | __module_get(trig->ops->owner); |
91 | }; | 91 | } |
92 | 92 | ||
93 | /** | 93 | /** |
94 | * iio_trigger_register() - register a trigger with the IIO core | 94 | * iio_trigger_register() - register a trigger with the IIO core |
@@ -104,7 +104,8 @@ void iio_trigger_unregister(struct iio_trigger *trig_info); | |||
104 | 104 | ||
105 | /** | 105 | /** |
106 | * iio_trigger_poll() - called on a trigger occurring | 106 | * iio_trigger_poll() - called on a trigger occurring |
107 | * @trig: trigger which occurred | 107 | * @trig: trigger which occurred |
108 | * @time: timestamp when trigger occurred | ||
108 | * | 109 | * |
109 | * Typically called in relevant hardware interrupt handler. | 110 | * Typically called in relevant hardware interrupt handler. |
110 | **/ | 111 | **/ |