Re: [RFC v2 4/4] iio: chemical: add SGX VZ89x VOC sensor support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/07/2015 06:27 AM, Matt Ranostay wrote:
> Thinking this over do we needed a IIO_CHAN_INFO_PROCESSED_OFFSET to
> signal that it needs to be after the (value - offset) * scale
> calculation?

Well, value * scale + offset = (value + offset/scale) * scale. So just scale
your offset inversely to the scale.

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux