drm: simpledrm: fix wrong unit with pixel clock
Subsystems (2)
PATCH 1/1 drm: simpledrm: fix wrong unit with pixel clock
Pixel clock has to be set in kHz.
Fixes 11e8f5fd223b ("drm: Add simpledrm driver")
Signed-off-by Alejandro Concepcion-Rodriguez <[email protected]>
--- drivers/gpu/drm/tiny/simpledrm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tiny/simpledrm.c +1 -1
@@ -459,7 +459,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;
--
2.25.1