Files
linux/drivers
Hartmut Knaack 81ebe850a0 iio:pressure:bmp280: fix pressure calculation
According to the datasheet and as defined in struct bmp280_comp_press, dig_p1 is
of type u16, while dig_p2 to dig_p9 are of type s16. In
bmp280_read_compensation_press(), values read from the device were treated as
the wrong type.
In bmp280_read_press() the fractional part of the measured pressure is
calculated wrong. A better way is to use *val for the raw pressure and *val2 for
the quotient and let the core do the proper conversion using IIO_VAL_FRACTIONAL.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Acked-by: Vlad Dogaru <vlad.dogaru@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2014-11-05 15:58:35 +00:00
..
2014-07-23 10:18:07 -07:00
2014-07-23 00:51:30 +02:00
2014-09-14 19:33:47 -07:00
2014-09-04 19:59:42 +02:00
2014-08-05 21:16:46 -07:00
2014-08-15 17:06:40 -04:00
2014-08-08 15:57:28 -07:00
2014-07-30 00:23:09 +02:00
2014-07-17 14:58:43 +02:00
2014-08-25 15:39:22 -04:00
2014-09-08 16:33:56 -07:00
2014-07-13 15:26:47 -07:00
2014-07-11 10:38:02 +02:00