diff options
-rw-r--r-- | include/linux/iio/buffer.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/include/linux/iio/buffer.h b/include/linux/iio/buffer.h index ad4fb1af0f7d..2a2b6b4d8d05 100644 --- a/include/linux/iio/buffer.h +++ b/include/linux/iio/buffer.h | |||
@@ -85,7 +85,7 @@ struct iio_buffer { | |||
85 | 85 | ||
86 | /** | 86 | /** |
87 | * iio_buffer_init() - Initialize the buffer structure | 87 | * iio_buffer_init() - Initialize the buffer structure |
88 | * @buffer: buffer to be initialized | 88 | * @buffer: buffer to be initialized |
89 | **/ | 89 | **/ |
90 | void iio_buffer_init(struct iio_buffer *buffer); | 90 | void iio_buffer_init(struct iio_buffer *buffer); |
91 | 91 | ||
@@ -107,8 +107,9 @@ int iio_scan_mask_query(struct iio_dev *indio_dev, | |||
107 | 107 | ||
108 | /** | 108 | /** |
109 | * iio_scan_mask_set() - set particular bit in the scan mask | 109 | * iio_scan_mask_set() - set particular bit in the scan mask |
110 | * @buffer: the buffer whose scan mask we are interested in | 110 | * @indio_dev IIO device structure |
111 | * @bit: the bit to be set. | 111 | * @buffer: the buffer whose scan mask we are interested in |
112 | * @bit: the bit to be set. | ||
112 | **/ | 113 | **/ |
113 | int iio_scan_mask_set(struct iio_dev *indio_dev, | 114 | int iio_scan_mask_set(struct iio_dev *indio_dev, |
114 | struct iio_buffer *buffer, int bit); | 115 | struct iio_buffer *buffer, int bit); |
@@ -116,8 +117,8 @@ int iio_scan_mask_set(struct iio_dev *indio_dev, | |||
116 | /** | 117 | /** |
117 | * iio_push_to_buffer() - push to a registered buffer. | 118 | * iio_push_to_buffer() - push to a registered buffer. |
118 | * @buffer: IIO buffer structure for device | 119 | * @buffer: IIO buffer structure for device |
119 | * @scan: Full scan. | 120 | * @data: the data to push to the buffer |
120 | * @timestamp: | 121 | * @timestamp: timestamp to associate with the data |
121 | */ | 122 | */ |
122 | int iio_push_to_buffer(struct iio_buffer *buffer, unsigned char *data, | 123 | int iio_push_to_buffer(struct iio_buffer *buffer, unsigned char *data, |
123 | s64 timestamp); | 124 | s64 timestamp); |
@@ -126,7 +127,9 @@ int iio_update_demux(struct iio_dev *indio_dev); | |||
126 | 127 | ||
127 | /** | 128 | /** |
128 | * iio_buffer_register() - register the buffer with IIO core | 129 | * iio_buffer_register() - register the buffer with IIO core |
129 | * @indio_dev: device with the buffer to be registered | 130 | * @indio_dev: device with the buffer to be registered |
131 | * @channels: the channel descriptions used to construct buffer | ||
132 | * @num_channels: the number of channels | ||
130 | **/ | 133 | **/ |
131 | int iio_buffer_register(struct iio_dev *indio_dev, | 134 | int iio_buffer_register(struct iio_dev *indio_dev, |
132 | const struct iio_chan_spec *channels, | 135 | const struct iio_chan_spec *channels, |
@@ -134,7 +137,7 @@ int iio_buffer_register(struct iio_dev *indio_dev, | |||
134 | 137 | ||
135 | /** | 138 | /** |
136 | * iio_buffer_unregister() - unregister the buffer from IIO core | 139 | * iio_buffer_unregister() - unregister the buffer from IIO core |
137 | * @indio_dev: the device with the buffer to be unregistered | 140 | * @indio_dev: the device with the buffer to be unregistered |
138 | **/ | 141 | **/ |
139 | void iio_buffer_unregister(struct iio_dev *indio_dev); | 142 | void iio_buffer_unregister(struct iio_dev *indio_dev); |
140 | 143 | ||