From: Lars-Peter Clausen Date: Mon, 17 Sep 2012 12:17:00 +0000 (+0100) Subject: iio:inkern: Add function to read the processed value X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~161^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48e44ce0f8810b530fc83a4f5eb67149280d9b82;p=pandora-kernel.git iio:inkern: Add function to read the processed value Add a function to read a processed value from a channel. The function will first attempt to read the IIO_CHAN_INFO_PROCESSED attribute. If that fails it will read the IIO_CHAN_INFO_RAW attribute and convert the result from a raw value to a processed value. The patch also introduces a function to convert raw value to a processed value and exports it, in case a user needs or wants to do the conversion by itself. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed