Skip to content

Commit e2ed135

Browse files
vsyrjaladaeinki
authored andcommitted
drm/exynos: Use mode->clock instead of reverse calculating it from the vrefresh
htotal*vtotal*vrefresh ~= clock. So just use say "clock" when we mean it. Cc: Inki Dae <[email protected]> Cc: Joonyoung Shim <[email protected]> Cc: Seung-Woo Kim <[email protected]> Cc: Kyungmin Park <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Signed-off-by: Inki Dae <[email protected]>
1 parent 2d6bf60 commit e2ed135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/exynos/exynos7_drm_decon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static void decon_ctx_remove(struct decon_context *ctx)
139139
static u32 decon_calc_clkdiv(struct decon_context *ctx,
140140
const struct drm_display_mode *mode)
141141
{
142-
unsigned long ideal_clk = mode->htotal * mode->vtotal * mode->vrefresh;
142+
unsigned long ideal_clk = mode->clock;
143143
u32 clkdiv;
144144

145145
/* Find the clock divider value that gets us closest to ideal_clk */

0 commit comments

Comments
 (0)