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

From: Lars-Peter Clausen
Date: Mon Sep 07 2015 - 04:08:55 EST

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-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at