]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbdc5b136c9edb91b2e43c896cd4f307059afc884
tree3234d964658703fb7f022165bd19519c9e925fb3
parent0e34a9c5a9d3df21bf541c0e2223070cbf36e8ba
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