Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936291AbdGTK3P (ORCPT ); Thu, 20 Jul 2017 06:29:15 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36682 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935135AbdGTK3M (ORCPT ); Thu, 20 Jul 2017 06:29:12 -0400 From: Jonathan Liu To: Maxime Ripard , Thierry Reding , David Airlie Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Jonathan Liu Subject: [PATCH] drm/panel: simple: Fix width and height for Olimex LCD-OLinuXino-4.3TS Date: Thu, 20 Jul 2017 20:29:43 +1000 Message-Id: <20170720102943.25091-1-net147@gmail.com> X-Mailer: git-send-email 2.13.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 842 Lines: 27 The physical size of the panel is 105.5 (W) x 67.2 (H) x 4.05 (D) mm but the active display area is 95.04 (W) x 53.856 (H) mm. The width and height should be set to the active display area. Signed-off-by: Jonathan Liu --- drivers/gpu/drm/panel/panel-simple.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 474fa759e06e..39a622a547e7 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1522,8 +1522,8 @@ static const struct panel_desc olimex_lcd_olinuxino_43ts = { .modes = &olimex_lcd_olinuxino_43ts_mode, .num_modes = 1, .size = { - .width = 105, - .height = 67, + .width = 95, + .height = 54, }, .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; -- 2.13.2