iio: humidity: hdc3020: fix temperature offset
authorDimitri Fedrau <dima.fedrau@gmail.com>
Fri, 26 Jan 2024 13:52:26 +0000 (14:52 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 27 Jan 2024 14:40:07 +0000 (14:40 +0000)
commita69eeaad093dd2c8fd0b216c8143b380b73d672d
treed7f36446682b4829c2bccb170fdcc9f4e3145260
parent9c46e3a5232d855a65f440b298a2a66497f799d2
iio: humidity: hdc3020: fix temperature offset

The temperature offset should be negative according to the datasheet.
Adding a minus to the existing offset results in correct temperature
calculations.

Fixes: c9180b8e39be ("iio: humidity: Add driver for ti HDC302x humidity sensors")
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Signed-off-by: Dimitri Fedrau <dima.fedrau@gmail.com>
Link: https://lore.kernel.org/r/20240126135226.3977904-1-dima.fedrau@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/humidity/hdc3020.c