diff options
| author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
|---|---|---|
| committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
| commit | e05dacd71db0a5da7c1a44bcaab2a8a240b9c233 (patch) | |
| tree | 31382cf1c7d62c03126448affb2fc86e8c4aaa8b /include/linux/iio/trigger.h | |
| parent | 3ab0b83bf6a1e834f4b884150d8012990c75d25d (diff) | |
| parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) | |
Merge commit 'v3.7-rc1' into stable/for-linus-3.7
* commit 'v3.7-rc1': (10892 commits)
Linux 3.7-rc1
x86, boot: Explicitly include autoconf.h for hostprogs
perf: Fix UAPI fallout
ARM: config: make sure that platforms are ordered by option string
ARM: config: sort select statements alphanumerically
UAPI: (Scripted) Disintegrate include/linux/byteorder
UAPI: (Scripted) Disintegrate include/linux
UAPI: Unexport linux/blk_types.h
UAPI: Unexport part of linux/ppp-comp.h
perf: Handle new rbtree implementation
procfs: don't need a PATH_MAX allocation to hold a string representation of an int
vfs: embed struct filename inside of names_cache allocation if possible
audit: make audit_inode take struct filename
vfs: make path_openat take a struct filename pointer
vfs: turn do_path_lookup into wrapper around struct filename variant
audit: allow audit code to satisfy getname requests from its names_list
vfs: define struct filename and have getname() return it
btrfs: Fix compilation with user namespace support enabled
userns: Fix posix_acl_file_xattr_userns gid conversion
userns: Properly print bluetooth socket uids
...
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 | **/ |
