original_kernel/drivers/w1/slaves
Ivan Zaentsev 2f6055c26f w1: w1_therm: Fix conversion result for negative temperatures
DS18B20 device driver returns an incorrect value for negative temperatures
due to a missing sign-extension in w1_DS18B20_convert_temp().

Fix by using s16 temperature value when converting to int.

Fixes: 9ace0b4dab (w1: w1_therm: Add support for GXCAS GX20MH01 device.)
Cc: stable <stable@vger.kernel.org>
Reported-by: Paweł Marciniak <sunwire@gmail.com>
Signed-off-by: Ivan Zaentsev <ivan.zaentsev@wirenboard.ru>
Link: https://lore.kernel.org/r/20210121093021.224764-1-ivan.zaentsev@wirenboard.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-27 14:59:16 +01:00
..
Kconfig
Makefile
w1_ds28e04.c
w1_ds28e17.c
w1_ds250x.c
w1_ds2405.c
w1_ds2406.c
w1_ds2408.c
w1_ds2413.c
w1_ds2423.c
w1_ds2430.c
w1_ds2431.c
w1_ds2433.c
w1_ds2438.c
w1_ds2780.c
w1_ds2780.h
w1_ds2781.c
w1_ds2781.h
w1_ds2805.c
w1_smem.c
w1_therm.c