drm/amd: Add amdgpu_hwmon_get_sensor_generic()
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 10 Aug 2023 10:31:54 +0000 (05:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Aug 2023 22:08:27 +0000 (18:08 -0400)
commitd78c227fce806cc157f147f4472bf288f9d6dce6
treeb5350a111c5dd4dd0d01cc923dfc85e01a5f19d2
parent8d72444288c868f135a316f6bd5de292bbd50b37
drm/amd: Add amdgpu_hwmon_get_sensor_generic()

Many sensor function have a lot of boilerplate checks.  Move these
into a generic amdgpu_hwmon_get_sensor_generic() instead.

No intended functional changes.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c