linux-uconsole/drivers/w1
Ian Dall 4268c2cbe0 w1: w1 temp: fix negative termperature calculation
commit 9a6a1ecd9e upstream.

Fix regression caused by commit 507e2fbaaa
("w1: w1 temp calculation overflow fix") whereby negative temperatures for
the DS18B20 are not converted properly.

When the temperature exceeds 32767 milli-degrees the temperature overflows
to -32768 millidegrees.  These are both well within the -55 - +125 degree
range for the sensor.

Addresses https://bugzilla.kernel.org/show_bug.cgi?id=12646

Signed-of-by: Ian Dall <ian@beware.dropbear.id.au>
Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Tested-by: Karsten Elfenbein <kelfe@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-05-12 14:57:00 -07:00
..
masters ds2482: Discard obsolete detect method 2009-10-04 22:53:41 +02:00
slaves w1: w1 temp: fix negative termperature calculation 2010-05-12 14:57:00 -07:00
Kconfig trivial: Kconfig: .ko is normally not included in module names 2009-06-12 18:01:50 +02:00
Makefile
w1.c w1: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-06 10:44:34 -08:00
w1.h w1: add touch block command 2009-01-08 08:31:13 -08:00
w1_family.c W1: w1_family, remove unused variable need_exit 2008-10-16 11:21:50 -07:00
w1_family.h w1: new driver. DS2431 chip 2008-10-16 11:21:51 -07:00
w1_int.c w1: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-06 10:44:34 -08:00
w1_int.h
w1_io.c w1: coding style cleanups in w1_io.c 2009-04-02 19:05:04 -07:00
w1_log.h drivers: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:53 -07:00
w1_netlink.c connector: Provide the sender's credentials to the callback 2009-10-02 10:54:01 -07:00
w1_netlink.h w1: send status messages after command processing 2009-01-08 08:31:14 -08:00