Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: simpledrm: fix wrong unit with pixel clock

Pixel clock has to be set in kHz.

Signed-off-by: Alejandro Concepcion-Rodriguez <asconcepcion@acoro.eu>
Fixes: 11e8f5fd223b ("drm: Add simpledrm driver")
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/6f8554ef-1305-0dda-821c-f7d2e5644a48@acoro.eu

authored by

Alejandro Concepcion-Rodriguez and committed by
Thomas Zimmermann
5cf06065 842470c4

+1 -1
+1 -1
drivers/gpu/drm/tiny/simpledrm.c
··· 458 458 { 459 459 struct drm_display_mode mode = { SIMPLEDRM_MODE(width, height) }; 460 460 461 - mode.clock = 60 /* Hz */ * mode.hdisplay * mode.vdisplay; 461 + mode.clock = mode.hdisplay * mode.vdisplay * 60 / 1000 /* kHz */; 462 462 drm_mode_set_name(&mode); 463 463 464 464 return mode;