mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
The current code will always return 0xffffffff in case of negative temperatures due to a bug in how the binary sign extension is being done. Use sign_extend32() instead. Signed-off-by: Amit Kucheria <[email protected]> Reviewed-by: Matthias Kaehlcke <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Signed-off-by: Eduardo Valentin <[email protected]>