kernel-ark/drivers/w1
David Fries 941ed3b530 W1: w1_therm.c ds18b20 decode freezing temperatures correctly
Correct the decoding of negative C temperatures.  The code did a binary OR
of two bytes to make a 16 bit value, but assignd it to an integer.  This
caused the value to not be sign extended and to loose that it was a
negative number in the assignment.

Before the patch (in my freezer),
	w1_slave
	ed fe 4b 46 7f ff 03 10 e4 : crc=e4 YES
	ed fe 4b 46 7f ff 03 10 e4 t=4078
With the patch,
	e3 fe 4b 46 7f ff 0d 10 81 : crc=81 YES
	e3 fe 4b 46 7f ff 0d 10 81 t=-17

Signed-off-by: David Fries <david@fries.net>
Acked-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-01-22 09:17:48 -08:00
..
masters W1: fix memset size error 2007-11-14 18:45:36 -08:00
slaves W1: w1_therm.c ds18b20 decode freezing temperatures correctly 2008-01-22 09:17:48 -08:00
Kconfig Kbuild/doc: fix links to Documentation files 2007-10-30 14:26:30 -07:00
Makefile [PATCH] better CONFIG_W1_SLAVE_DS2433_CRC handling 2006-12-07 08:39:43 -08:00
w1_family.c [PATCH] W1: possible cleanups 2006-06-22 11:22:50 -07:00
w1_family.h [BATTERY] ds2760 W1 slave 2007-07-10 11:28:31 +01:00
w1_int.c w1: fix w1_remove_master_device() searching 2007-08-22 19:52:46 -07:00
w1_int.h [PATCH] w1: cleanups. 2005-06-21 21:43:09 -07:00
w1_io.c [PATCH] W1: possible cleanups 2006-06-22 11:22:50 -07:00
w1_log.h [PATCH] w1: cleanups. 2005-06-21 21:43:09 -07:00
w1_netlink.c [PATCH] w1: Use mutexes instead of semaphores. 2006-06-22 11:22:50 -07:00
w1_netlink.h [PATCH] w1: Move w1-connector definitions into linux/include/connector.h 2006-06-22 11:22:50 -07:00
w1.c w1: decrement slave counter only in ->release() callback 2008-01-14 08:52:22 -08:00
w1.h [PATCH] drivers/w1/w1.c: fix a compile error 2006-06-22 11:22:51 -07:00