projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a50bb4
)
drm/amdgpu: fix a reversed condition
author
Rex Zhu
<
[email protected]
>
Wed, 25 Jul 2018 03:51:46 +0000
(11:51 +0800)
committer
Alex Deucher
<
[email protected]
>
Tue, 31 Jul 2018 21:58:12 +0000
(16:58 -0500)
This test was reversed so it would end up leading to vddnb value
can't be read via hwmon on APU.
Reviewed-by: Evan Quan <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
Signed-off-by: Rex Zhu <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
Cc:
[email protected]
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
index 15a1192c1ec5472b9d4b51127cc7ad569eced99a..23fc1d32b937ec78c7dd6496f37f25140d2cb39d 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
@@
-1185,7
+1185,7
@@
static ssize_t amdgpu_hwmon_show_vddnb(struct device *dev,
int r, size = sizeof(vddnb);
/* only APUs have vddnb */
- if (
adev->flags & AMD_IS_APU
)
+ if (
!(adev->flags & AMD_IS_APU)
)
return -EINVAL;
/* Can't get voltage when the card is off */