drm/amd/powerplay: add fan input interface for hwmon
authorLikun Gao <Likun.Gao@amd.com>
Fri, 25 Jan 2019 09:45:24 +0000 (17:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:04:01 +0000 (15:04 -0500)
commit3ac4ffdd13fe74d1164ca61cdc6c7e8d8bfd6a70
treee95fc2857edeaf5151c579cf9054af66a9433df0
parent637c1c6644a907a89965fd04d7308fb2e61b6d0c
drm/amd/powerplay: add fan input interface for hwmon

Add fan1_input and fan1_target interface to get fan speed info for hwmon.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/smu_v11_0.c