Skip to content

Commit

Permalink
iio: fix doc for iio_gts_find_sel_by_int_time
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
M-Vaittinen authored and jic23 committed May 13, 2023
1 parent 279c3a2 commit 672cde9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/iio/iio-gts-helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static inline int iio_gts_find_int_time_by_sel(struct iio_gts *gts, int sel)
/**
* iio_gts_find_sel_by_int_time - find selector matching integration time
* @gts: Gain time scale descriptor
* @gain: HW-gain for which matching selector is searched for
* @time: Integration time for which matching selector is searched for
*
* Return: a selector matching given integration time or -EINVAL if
* selector was not found.
Expand Down

0 comments on commit 672cde9

Please sign in to comment.