Skip to content

Commit 672cde9

Browse files
M-Vaittinenjic23
authored andcommitted
iio: fix doc for iio_gts_find_sel_by_int_time
The kerneldoc for iio_gts_find_sel_by_int_time() has an error. Documentation states that function is searching a selector for a HW-gain while it is searching a selector for an integration time. Fix the documentation by saying the function is looking for a selector for an integration time. Fixes: 38416c2 ("iio: light: Add gain-time-scale helpers") Signed-off-by: Matti Vaittinen <[email protected]> Link: https://lore.kernel.org/r/ZEIjI4YUzqPZk/9X@fedora Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 279c3a2 commit 672cde9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/iio/iio-gts-helper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static inline int iio_gts_find_int_time_by_sel(struct iio_gts *gts, int sel)
135135
/**
136136
* iio_gts_find_sel_by_int_time - find selector matching integration time
137137
* @gts: Gain time scale descriptor
138-
* @gain: HW-gain for which matching selector is searched for
138+
* @time: Integration time for which matching selector is searched for
139139
*
140140
* Return: a selector matching given integration time or -EINVAL if
141141
* selector was not found.

0 commit comments

Comments
 (0)