]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: Expose vddc through hwmon
authorSandeep Raghuraman <sandy.8925@gmail.com>
Fri, 9 Oct 2020 07:49:19 +0000 (13:19 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Oct 2020 21:43:42 +0000 (17:43 -0400)
commit34ef460bca8908ee94ea9bc35ca498b9d12a8772
treefc07ca0244f8f740d023f368088a435ea4f16556
parent7c445070b0a98c6ca54b5b22c82f30cbf1c788e4
drm/radeon: Expose vddc through hwmon

Create hwmon attribute for vddc, that uses previously declared get_current_vddc() callback if there's an implementation available.

Also hides vddc, if there is no implementation for the current chipset (as per Alexander Deucher's suggestion).

Signed-off-by: Sandeep Raghuraman <sandy.8925@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_pm.c