From 506ef5e152964cca3cc86c72515b123e1b3f2559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Baptiste=20Th=C3=A9ou?= Date: Tue, 24 Sep 2019 06:32:56 +0900 Subject: [PATCH] mdss_fb: use a modulo 2 offset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Idd03eded90a0e6cfaa8998c51d2b6e99a4f16fd7 Signed-off-by: Jean-Baptiste Théou --- drivers/video/fbdev/msm/mdss_fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/msm/mdss_fb.c b/drivers/video/fbdev/msm/mdss_fb.c index 7670bd95a912..858709bcb410 100644 --- a/drivers/video/fbdev/msm/mdss_fb.c +++ b/drivers/video/fbdev/msm/mdss_fb.c @@ -377,7 +377,7 @@ static int mdss_fb_get_panel_xres(struct mdss_panel_info *pinfo) if (pinfo->split_link_enabled) xres = xres * pinfo->mipi.num_of_sublinks; #ifdef CONFIG_BOARD_MATA - return xres - 127; + return xres - 124; #else return xres; #endif