From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: Re: [RFC v2 4/4] iio: chemical: add SGX VZ89x VOC sensor support Date: Mon, 07 Sep 2015 10:08:42 +0200 Message-ID: <55ED460A.1080706@metafoo.de> References: <1441593547-10896-1-git-send-email-mranostay@gmail.com> <1441593547-10896-5-git-send-email-mranostay@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Matt Ranostay , Jonathan Cameron Cc: Peter Meerwald , "open list:IIO SUBSYSTEM AND..." , open list , "open list:OPEN FIRMWARE AND..." , George McCollister List-Id: devicetree@vger.kernel.org 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 devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html