Skip to content

Commit c3668a0

Browse files
pmeerwjic23
authored andcommitted
iio: document missing elements
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent 00062a9 commit c3668a0

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎include/linux/iio/iio.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ ssize_t iio_enum_write(struct iio_dev *indio_dev,
229229
* @indexed: Specify the channel has a numerical index. If not,
230230
* the channel index number will be suppressed for sysfs
231231
* attributes but not for event codes.
232+
* @output: Channel is output.
232233
* @differential: Channel is differential.
233234
*/
234235
struct iio_chan_spec {
@@ -312,6 +313,9 @@ struct iio_dev;
312313
* Meaning is event dependent.
313314
* @validate_trigger: function to validate the trigger when the
314315
* current trigger gets changed.
316+
* @update_scan_mode: function to configure device and scan buffer when
317+
* channels have changed
318+
* @debugfs_reg_access: function to read or write register value of device
315319
**/
316320
struct iio_info {
317321
struct module *driver_module;

‎include/linux/iio/trigger.h‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ struct iio_trigger_ops {
3939

4040
/**
4141
* struct iio_trigger - industrial I/O trigger device
42-
*
42+
* @ops: [DRIVER] operations structure
4343
* @id: [INTERN] unique id number
4444
* @name: [DRIVER] unique name
4545
* @dev: [DRIVER] associated device (if relevant)
@@ -104,7 +104,8 @@ void iio_trigger_unregister(struct iio_trigger *trig_info);
104104

105105
/**
106106
* iio_trigger_poll() - called on a trigger occurring
107-
* @trig: trigger which occurred
107+
* @trig: trigger which occurred
108+
* @time: timestamp when trigger occurred
108109
*
109110
* Typically called in relevant hardware interrupt handler.
110111
**/

0 commit comments

Comments
 (0)