summaryrefslogtreecommitdiffstats
path: root/crypto/krng.c
diff options
context:
space:
mode:
authorGuenter Roeck <guenter.roeck@ericsson.com>2011-06-30 02:09:37 -0700
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-07-10 08:54:15 -0700
commit0c2a40e2fe4f4af0410f57e84b95b817ec15aa70 (patch)
treeca3d7268acc38bf2549dc53be8c96df98560cfd4 /crypto/krng.c
parent27739e694a3c34b5e371575d74e500d60111c689 (diff)
downloadblackbird-op-linux-0c2a40e2fe4f4af0410f57e84b95b817ec15aa70.tar.gz
blackbird-op-linux-0c2a40e2fe4f4af0410f57e84b95b817ec15aa70.zip
hwmon: (lm95241) Fix negative temperature results
Negative temperatures were returned in degrees C instead of milli-Degrees C. Also, negative temperatures were reported for remote temperature sensors even if the chip was configured for positive-only results. Fix by detecting temperature modes, and by treating negative temperatures similar to positive temperatures, with appropriate sign extension. Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com> Acked-by: Jean Delvare <khali@linux-fr.org> Cc: stable@kernel.org # 2.6.30+
Diffstat (limited to 'crypto/krng.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud