diff options
author | Andreas Klinger <ak@it-klinger.de> | 2017-04-10 17:00:01 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-25 13:44:37 (GMT) |
commit | dfb450b2b66e4271c63c10f72c17e2a9967e511c (patch) | |
tree | 422a1acd2fc4451ab9997a88c183c95bac95f0a3 /drivers/md/dm.h | |
parent | a03176f92a02f0e1d1965c32b95d65a8bdbd6ac4 (diff) | |
download | linux-dfb450b2b66e4271c63c10f72c17e2a9967e511c.tar.xz |
IIO: bmp280-core.c: fix error in humidity calculation
commit ed3730c435f1a9f9559ed7762035d22d8a95adfe upstream.
While calculating the compensation of the humidity there are negative values
interpreted as unsigned because of unsigned variables used. These values as
well as the constants need to be casted to signed as indicated by the
documentation of the sensor.
Signed-off-by: Andreas Klinger <ak@it-klinger.de>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/md/dm.h')
0 files changed, 0 insertions, 0 deletions