drm/radeon: Add a common function for DFS handling
authorSlava Grigorev <slava.grigorev@amd.com>
Tue, 26 Jan 2016 21:56:25 +0000 (16:56 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Jan 2016 17:48:32 +0000 (12:48 -0500)
commita64c9dab1c4d05c87ec8a1cb9b48915816462143
tree374bfa1bb2f03adba7d22642c0dc8b550ad8933c
parentc9a392eac18409f51a071520cf508c0b4ad990e2
drm/radeon: Add a common function for DFS handling

Move encoding of DFS (digital frequency synthesizer) divider into a
separate function and improve calculation precision.

Signed-off-by: Slava Grigorev <slava.grigorev@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/dce6_afmt.c
drivers/gpu/drm/radeon/radeon_audio.c
drivers/gpu/drm/radeon/radeon_audio.h