summaryrefslogtreecommitdiffstats
path: root/drivers/pci/host/pcie-rcar.c
diff options
context:
space:
mode:
authorHartmut Knaack <knaack.h@gmx.de>2014-10-31 02:22:00 +0100
committerJonathan Cameron <jic23@kernel.org>2014-11-05 16:58:35 +0100
commit81ebe850a019ccb8bf0a429fb463d9bfc15ec298 (patch)
tree7235e3aa02eebe7c6289f8b89c1e1c8d2cff16dd /drivers/pci/host/pcie-rcar.c
parentiio: adc: exynos_adc: Add support for exynos7 (diff)
downloadlinux-81ebe850a019ccb8bf0a429fb463d9bfc15ec298.tar.xz
linux-81ebe850a019ccb8bf0a429fb463d9bfc15ec298.zip
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>
Diffstat (limited to 'drivers/pci/host/pcie-rcar.c')
0 files changed, 0 insertions, 0 deletions