aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/api/debug.c
diff options
context:
space:
mode:
authorAndreas Klinger <ak@it-klinger.de>2017-04-10 19:00:01 +0200
committerJonathan Cameron <jic23@kernel.org>2017-04-14 16:54:49 +0100
commited3730c435f1a9f9559ed7762035d22d8a95adfe (patch)
tree677e87223f1e19d556faec1d463da4d1af834f29 /tools/lib/api/debug.c
parent84ca8e364acb26aba3292bc113ca8ed4335380fd (diff)
IIO: bmp280-core.c: fix error in humidity calculation
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> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/lib/api/debug.c')
0 files changed, 0 insertions, 0 deletions