diff options
Diffstat (limited to 'include/linux/iio/trigger.h')
| -rw-r--r-- | include/linux/iio/trigger.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/iio/trigger.h b/include/linux/iio/trigger.h index f0af2673891d..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, |
| @@ -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 |
