commit | ccd32e735de7a941906e093f8dca924bb05c5794 | [log] [tgz] |
---|---|---|
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | Mon Mar 21 17:59:35 2011 +0100 |
committer | Jean Delvare <khali@endymion.delvare> | Mon Mar 21 17:59:35 2011 +0100 |
tree | 0917acbefbf51c669d4cae75daae2f5abccfbdaa | |
parent | 396bd766a604b823369962ee0203c603b9c0bdec [diff] |
hwmon: (sht15) Fix integer overflow in humidity calculation An integer overflow occurs in the calculation of RHlinear when the relative humidity is greater than around 30%. The consequence is a subtle (but noticeable) error in the resulting humidity measurement. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: Jean Delvare <khali@linux-fr.org> Cc: stable@kernel.org Cc: Jonathan Cameron <jic23@cam.ac.uk>