From: Jacek Anaszewski Date: Tue, 2 Jul 2013 10:13:00 +0000 (+0100) Subject: iio: lps331ap: Fix wrong in_pressure_scale output value X-Git-Tag: v3.11-rc2~3^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67dbf54a3b03881c7b683801fa49ca1f2c4c3bcf;p=pandora-kernel.git iio: lps331ap: Fix wrong in_pressure_scale output value This patch fixes improper in_pressure_scale output that is returned by the lps331ap barometer sensor driver. According to the documentation the pressure after applying the scale has to be expressed in kilopascal units. With erroneous implementation the scale value larger by two orders of magnitude is returned - 2441410 instead of 24414. Signed-off-by: Jacek Anaszewski Signed-off-by: Kyungmin Park Acked-by: Denis Ciocca Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed