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)
commitfddc611ca3a09932196c192116a596dc67206eb5
treefc07ca0244f8f740d023f368088a435ea4f16556
parentc57a8308e2cc2e83a268c0123ff2060f30a38950
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