iio: lps331ap: Fix wrong in_pressure_scale output value
authorJacek Anaszewski <j.anaszewski@samsung.com>
Tue, 2 Jul 2013 10:13:00 +0000 (11:13 +0100)
committerJonathan Cameron <jic23@kernel.org>
Tue, 16 Jul 2013 07:51:57 +0000 (08:51 +0100)
commit67dbf54a3b03881c7b683801fa49ca1f2c4c3bcf
tree3234d964658703fb7f022165bd19519c9e925fb3
parent8f6817a0a57cf15935f8f076d0ade34da01cf26d
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 <j.anaszewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/st_pressure_core.c