lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 07 Sep 2015 10:08:42 +0200
From:	Lars-Peter Clausen <lars@...afoo.de>
To:	Matt Ranostay <mranostay@...il.com>,
	Jonathan Cameron <jic23@...nel.org>
CC:	Peter Meerwald <pmeerw@...erw.net>,
	"open list:IIO SUBSYSTEM AND..." <linux-iio@...r.kernel.org>,
	open list <linux-kernel@...r.kernel.org>,
	"open list:OPEN FIRMWARE AND..." <devicetree@...r.kernel.org>,
	George McCollister <george.mccollister@...il.com>
Subject: Re: [RFC v2 4/4] iio: chemical: add SGX VZ89x VOC sensor support

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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ