diff mbox series

[2/3] iio: gts: fix units of available integration times

Message ID f168fb25483e8e2b7a0e02695d3b37377737ddb8.1681301472.git.mazziesaccount@gmail.com (mailing list archive)
State Changes Requested
Headers show
Series iio: Fix integration time units for iio-gts | expand

Commit Message

Matti Vaittinen April 12, 2023, 12:28 p.m. UTC
The available integration times should be in the units of seconds, not
micro seconds.

Use the new IIO_VAL_INT_MICRO to return times in seconds

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
---
 drivers/iio/industrialio-gts-helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/iio/industrialio-gts-helper.c b/drivers/iio/industrialio-gts-helper.c
index 8bb68975b259..e242d0eb8b94 100644
--- a/drivers/iio/industrialio-gts-helper.c
+++ b/drivers/iio/industrialio-gts-helper.c
@@ -683,7 +683,7 @@  int iio_gts_avail_times(struct iio_gts *gts,  const int **vals, int *type,
 		return -EINVAL;
 
 	*vals = gts->avail_time_tables;
-	*type = IIO_VAL_INT;
+	*type = IIO_VAL_INT_MICRO;
 	*length = gts->num_avail_time_tables;
 
 	return IIO_AVAIL_LIST;