Guenter Roeck 9028ff8e3d hwmon: (lm80) Simplify TEMP_FROM_REG
TEMP_FROM_REG gets 12 bits of temperature data in the upper 12 bit
of a signed 16 bit parameter, with the integer part (including sign)
in the upper 8 bit and the remainder in bit 4..7. The lower 4 bit of
the 16 bit data is always 0. We can use that information to convert
the temperature directly into display data (1/1000th of degree C).

Note that the stored temperature data is not shifted right as the
comment claimed, so remove that misleading comment.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2014-05-21 16:02:26 -07:00
..
2013-10-18 09:12:02 -07:00
2013-10-18 09:12:02 -07:00
2014-03-03 08:01:04 -08:00
2014-01-29 20:40:08 +01:00
2013-10-13 16:16:25 -07:00
2014-01-29 20:40:08 +01:00
2013-08-11 22:10:39 -07:00
2013-08-27 08:28:01 -07:00
2014-01-29 20:40:08 +01:00
2013-08-11 22:10:39 -07:00
2014-01-29 20:40:08 +01:00
2014-01-29 20:40:08 +01:00
2013-08-27 08:28:01 -07:00
2013-09-11 13:01:32 -07:00
2014-04-04 18:01:35 +02:00
2013-03-18 21:19:49 +01:00
2014-01-29 20:40:08 +01:00
2014-05-21 16:02:26 -07:00
2014-01-29 20:40:08 +01:00
2014-01-29 20:40:08 +01:00
2013-08-11 22:10:39 -07:00
2014-01-29 20:40:08 +01:00
2012-11-28 11:49:40 -08:00
2012-11-28 11:49:40 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2014-01-29 20:40:08 +01:00
2013-10-18 09:12:02 -07:00
2014-01-29 20:40:08 +01:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00