drm/amd/powerplay: fix fan speed show error (for hwmon pwm)
authorKevin Wang <kevin1.wang@amd.com>
Thu, 6 Jun 2019 09:12:34 +0000 (17:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jun 2019 18:25:48 +0000 (13:25 -0500)
commitab43c4bf1cc8e8e1f0c7036c3448c5a628d18913
tree873aaa07efb9e9bcd0300b59712d1ae1da2e10a3
parent709527c77a8977e95166d7d446e6a54f60e1e285
drm/amd/powerplay: fix fan speed show error (for hwmon pwm)

the navi asic can't get current rpm by MSG_GetCurrentRpm,
it will cause show fan rpm error, use Metrics_t to replace it.

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/navi10_ppt.c