Skip to content

Commit

Permalink
drm/radeon/dpm/rs780: use drm_mode_vrefresh()
Browse files Browse the repository at this point in the history
Rather than open coding it.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
  • Loading branch information
Alex Deucher committed Sep 16, 2013
1 parent d2aebe3 commit c3eaa08
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/gpu/drm/radeon/rs780_dpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ static void rs780_get_pm_mode_parameters(struct radeon_device *rdev)
radeon_crtc = to_radeon_crtc(crtc);
pi->crtc_id = radeon_crtc->crtc_id;
if (crtc->mode.htotal && crtc->mode.vtotal)
pi->refresh_rate =
(crtc->mode.clock * 1000) /
(crtc->mode.htotal * crtc->mode.vtotal);
pi->refresh_rate = drm_mode_vrefresh(&crtc->mode);
break;
}
}
Expand Down

0 comments on commit c3eaa08

Please sign in to comment.