From 72ac6969033dc9f5e526566240a3a7934f0916ee Mon Sep 17 00:00:00 2001 From: Satendra Singh Thakur Date: Sat, 31 Mar 2018 20:17:58 +0530 Subject: drm/mediatek: Using the function drm_display_mode_to_videomode This patch uses existing method drm_display_mode_to_videomode for calculating front/back porches, sync lengths for mediatek dsi/dpi drivers; instead of manually calculating them Signed-off-by: Satendra Singh Thakur Signed-off-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dpi.c | 60 +++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'drivers/gpu/drm/mediatek/mtk_dpi.c') diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index e80a603e5fb0..6c0ea39d5739 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -22,6 +22,7 @@ #include #include #include +#include