From: Adriana Reus Date: Mon, 23 Feb 2015 14:40:51 +0000 (+0200) Subject: iio:inv-mpu6050: Fix inconsistency for the scale channel X-Git-Tag: omap-for-v4.2/o2_dc~218^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af5e1a68318e2ed2de22fc2d7a02f2882abe073c;p=pandora-kernel.git iio:inv-mpu6050: Fix inconsistency for the scale channel Fix inconsistency in the semantics of the scale attribute. For scale the write_raw function was considering the scale table index and writing the appropriate value into the range register, while for read_raw it was outputting the actual scale. Fix this behaviour and adhere to the iio ABI specification. Signed-off-by: Adriana Reus Reviewed-by: Viorel Suman Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed