[PATCH v2 2/3] iio: Introduce IIO_CHAN_INFO_RANGE

Daniel Baluta daniel.baluta at intel.com
Fri Feb 20 13:21:13 EET 2015



On 02/19/2015 04:44 PM, Roberta Dobrescu wrote:
> Some ambient light sensors have hardware dependent ranges and
> resolutions. In this case user won't be able to calculate illuminance
> (lux) using only scale attribute.
>
> For instance, a device that uses a Full Scale Range is the
> light sensor ISL29018. In this case, IIO_CHAN_INFO_RANGE is
> needed since the number of ADC bits can be 4, 8, 12 or 16 and
> using just scales would result in too similar values for different
> ranges and resolutions.
>
> Signed-off-by: Roberta Dobrescu <roberta.dobrescu at gmail.com>

Looks good to me.


More information about the firefly mailing list