Re: [PATCH v2 2/3] iio: add documentation for iio_chan_info_enum

From: Jonathan Cameron
Date: Sun Apr 16 2023 - 09:18:17 EST


> >> + * @IIO_CHAN_INFO_HYSTERESIS:
> >> + * @IIO_CHAN_INFO_HYSTERESIS_RELATIVE:
> >> + * @IIO_CHAN_INFO_INT_TIME: Integration time. Time during which the data is
> >> + * accumulated by the device.
> >
> > Unit? (seconds I think).
>
> Really...? Can you please double check this?
>
> I believe the BU27034 uses micro seconds. I thought that was correct
> approach - but if it is not then we can probably still change it w/o
> breaking userland...

It's seconds in the ABI docs. Thankfully time to fix the
driver. No huge rush as long as we do it in time to slip in before
release.

In the early days of IIO we got most of our scaling from hwmon.
It became clear after a while that those weren't appropriate because
they tended to not have enough precision. Hence things shifted (with
a few exceptions) to the SI unit without mili etc. I think the time
related ones all came after that change of approach.

Thanks,

Jonathan


>
>
> Yours,
> -- Matti
>