diff options
| author | Chris Packham <[email protected]> | 2016-10-04 21:40:54 +0000 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2016-10-17 17:16:20 +0000 |
| commit | 667f4bab81ea8357d260aa14bb6fb1a4834248d5 (patch) | |
| tree | a0cadcf223dbfcfe8a7b708d88cb957bbca7b3c7 /scripts/gcc-plugins/gcc-common.h | |
| parent | Linux 4.9-rc1 (diff) | |
| download | kernel-667f4bab81ea8357d260aa14bb6fb1a4834248d5.tar.gz kernel-667f4bab81ea8357d260aa14bb6fb1a4834248d5.zip | |
hwmon: (adm9240) handle temperature readings below 0
Unlike the temperature thresholds the temperature data is a 9-bit signed
value. This allows and additional 0.5 degrees of precision on the
reading but makes handling negative values slightly harder. In order to
have sign-extension applied correctly the 9-bit value is stored in the
upper bits of a signed 16-bit value. When presenting this in sysfs the
value is shifted and scaled appropriately.
Signed-off-by: Chris Packham <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions
