mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
drm/radeon/kms: signed fix for evergreen thermal
temperature is signed. Signed-off-by: Alex Deucher <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
This commit is contained in:
parent
45e97ab650
commit
1c88d74f3a
1 changed files with 2 additions and 1 deletions
|
|
@ -88,7 +88,8 @@ u32 evergreen_page_flip(struct radeon_device *rdev, int crtc_id, u64 crtc_base)
|
|||
/* get temperature in millidegrees */
|
||||
int evergreen_get_temp(struct radeon_device *rdev)
|
||||
{
|
||||
u32 temp, toffset, actual_temp = 0;
|
||||
u32 temp, toffset;
|
||||
int actual_temp = 0;
|
||||
|
||||
if (rdev->family == CHIP_JUNIPER) {
|
||||
toffset = (RREG32(CG_THERMAL_CTRL) & TOFFSET_MASK) >>
|
||||
|
|
|
|||
Loading…
Reference in a new issue