From: Lars-Peter Clausen Date: Mon, 4 Mar 2013 19:30:00 +0000 (+0000) Subject: iio:ad7923: Implement scale reporting X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~537^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecf6ca2539bc3a36a14685b743fd7376707958ab;p=pandora-kernel.git iio:ad7923: Implement scale reporting The driver already claims to support scale reporting in its channel spec, but doesn't actually implement this yet. This patch uses the regulator API to get the reference voltage and calculates the scale based on that. The patch also moves the global configuration bits into a field in the ad7923_state struct, since depending on the RANGE bit, the range goes either from 0 to VREF or from 0 to 2 * VREF. So we need to know the setting of the RANGE bit when calculating the scale. Signed-off-by: Lars-Peter Clausen Cc: Patrick Vasseur Cc: Christophe Leroy Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed