drm/amdgpu/swsmu/renoir: simplify sensor handling (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 1 Dec 2020 17:29:31 +0000 (12:29 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Dec 2020 22:37:18 +0000 (17:37 -0500)
commit22ca75ea6a28c62fd3648b99f4baae1a4f0f7710
treeb12a538e51ac55522eabb1652b6aa312ad4922e7
parent2139d12b3b5bba20f967ee8152e4ac05dbb5d089
drm/amdgpu/swsmu/renoir: simplify sensor handling (v2)

Just query the metrics table directly rather than going through
an extra level of functions.

v2: use proper enum

Reviewed-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c