diff options
author | Irina Tirdea <irina.tirdea@intel.com> | 2015-04-08 18:26:12 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-04-09 12:54:10 +0100 |
commit | abad398337f038f5822e53c55eff5b0820ef7efe (patch) | |
tree | e0442b139200afcf71c3f0ff32204d9f3e9d4335 /drivers/iio/adc/axp288_adc.c | |
parent | c610f7f772aa06ae2bd8e5ace87cde4d90f70198 (diff) |
iio: pressure: bmp280: fix temp compensation
Temperature reads on bmp280 device always return 0,
due to a missing step in the compensation formula
(data->tfine is never initialized).
Initialize data->tfine value so we get correct
temperature and pressure values.
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Reviewed-by: Vlad Dogaru <vlad.dogaru@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/axp288_adc.c')
0 files changed, 0 insertions, 0 deletions