From: Lars-Peter Clausen Date: Thu, 15 Nov 2012 13:15:00 +0000 (+0000) Subject: staging:iio:ad7298: Fix temperature scale and offset X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~294^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01a10e04f8e099fea3212a70df0b25a8ffd9275f;p=pandora-kernel.git staging:iio:ad7298: Fix temperature scale and offset The temperature scale and offset depend on the reference voltage, the current formula used in the driver assumes a 2.5V reference. This patch modifies the code to report the unprocessed value for the temperature channel "raw" property and to provide proper "scale" and "offset" properties which depend on the selected reference voltage. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed