iio: gts-helpers: fix integration time units
authorMatti Vaittinen <mazziesaccount@gmail.com>
Mon, 17 Apr 2023 09:20:18 +0000 (12:20 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 13 May 2023 16:54:57 +0000 (17:54 +0100)
commite65065132fa6d9e1fd3b7418eae5215e3b7bf6c7
tree2914f9fc7d37567a2b381554a77cadfa4984601a
parentb7b04f393ffa1530213f522115e7d77761eb5c4f
iio: gts-helpers: fix integration time units

The IIO ABI mandates expressing integration times in seconds. The GTS
helper errorneously uses micro seconds in integration_times_available.
Fix this by converting the lists to IIO_VAL_INT_PLUS_MICRO.

Fixes: 38416c28e168 ("iio: light: Add gain-time-scale helpers")
Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://lore.kernel.org/r/eeacd192c259e885850b5a2dd8b776bccfc44fa8.1681722914.git.mazziesaccount@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-gts-helper.c