drm/amdgpu: expose amdgpu_sensors on pre-powerplay chips
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 15 Feb 2017 18:32:29 +0000 (19:32 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:53:04 +0000 (23:53 -0400)
commit3cbc614f2fe7500cf2b0f29bbf941cf516c8b950
tree41592a7ec9a5768199b5e356f754eef102d31869
parentd6c29695e68ca911648dbe2294764dab6ef84fc7
drm/amdgpu: expose amdgpu_sensors on pre-powerplay chips

read_sensor() has been recently implemented for dpm based boards
which means amdgpu_sensors can now be exposed.

v2: - make sure read_sensor is not NULL on dpm chips
    - keep sanity check for powerplay chips
v3: - make sure amdgpu_dpm != 0

Cc: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Tom St Denis <tom.stdenis@amd.com>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c