]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ltc2947) fix temperature scaling
authorDerek Nguyen <derek.nguyen@collins.com>
Thu, 10 Nov 2022 19:21:08 +0000 (13:21 -0600)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 20 Nov 2022 14:04:15 +0000 (06:04 -0800)
commitb5f54823d09e8b3fa0369a89b1153b94bd324b7e
tree5a923804f74ef2ecba5d6074766fe239e2a776c7
parenta4006cca2ec79a9fea74149004ac62dd348ae059
hwmon: (ltc2947) fix temperature scaling

The LTC2947 datasheet (Rev. B) calls out in the section "Register
Description: Non-Accumulated Result Registers" (pg. 30) that "To
calculate temperature, multiply the TEMP register value by 0.204°C
and add 5.5°C". Fix to add 5.5C and not 0.55C.

Fixes: 527b7d806d65 ("hwmon: Add support for ltc2947")
Signed-off-by: Derek Nguyen <derek.nguyen@collins.com>
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Link: https://lore.kernel.org/r/20221110192108.20624-1-brandon.maier@collins.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ltc2947-core.c