thermal: tsens: Fix negative temperature reporting
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: NAmit Kucheria <amit.kucheria@linaro.org> Reviewed-by: NMatthias Kaehlcke <mka@chromium.org> Reviewed-by: NBjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
Showing
想要评论请 注册 或 登录