提交 5cf06065 编写于 作者: A Alejandro Concepcion-Rodriguez 提交者: Thomas Zimmermann

drm: simpledrm: fix wrong unit with pixel clock

Pixel clock has to be set in kHz.
Signed-off-by: NAlejandro Concepcion-Rodriguez <asconcepcion@acoro.eu>
Fixes: 11e8f5fd ("drm: Add simpledrm driver")
Signed-off-by: NThomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/6f8554ef-1305-0dda-821c-f7d2e5644a48@acoro.eu
上级 842470c4
......@@ -458,7 +458,7 @@ static struct drm_display_mode simpledrm_mode(unsigned int width,
{
struct drm_display_mode mode = { SIMPLEDRM_MODE(width, height) };
mode.clock = 60 /* Hz */ * mode.hdisplay * mode.vdisplay;
mode.clock = mode.hdisplay * mode.vdisplay * 60 / 1000 /* kHz */;
drm_mode_set_name(&mode);
return mode;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册