drm/i915: Use DIV_ROUND_CLOSEST() to calculate dot/vco
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 14 Oct 2013 11:50:30 +0000 (14:50 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 14 Oct 2013 14:59:14 +0000 (16:59 +0200)
commitfb03ac0106bcc1d5576f1e94161e41a2ef4da1f3
treeded81c17f8c067346d6aec88afa2570a41776129
parent540b5d02766863c561afe9f9d56ce0425022a731
drm/i915: Use DIV_ROUND_CLOSEST() to calculate dot/vco

Rounding down when calculating the dot/vco frequencies doesn't make much
sense. Round to closest should give slightly nicer answers.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c